Jump to content

Terminal control/Preserve screen: Difference between revisions

(Applesoft BASIC)
Line 319:
 
text: defm "This is some text. Please press a key.\0"</lang>
 
=={{header|zkl}}==
{{trans|C}}
Works in a Mint Linux terminal, switching to the alternate screen buffer, printing a count down message and then switching back.
<lang zkl>print("\e[?1049h\e[H");
println("Alternate screen buffer");
foreach i in ([5..1,-1]){
print("\rgoing back in %d...".fmt(i));
Atomic.sleep(1);
}
print("\e[?1049l");</lang>
 
 
{{omit from|PHP}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.