How to? keep console from scrolling

May 31, 2008
382
2
Is there a way to keep the console from scrolling after typing a command and pressing the Enter key?
More specifically, I want to modify the following autoexecute keystroke alias to keep it from scrolling up the console buffer each time it is invoked (this alias cycles through available fonts using features of the 4CONSOLE plugin). TIA
Code:
@@Alt-[=^eSETFONT %@eval[%@inc[%_font] mod %_nfonts]
 
May 20, 2008
11,400
99
Syracuse, NY, USA
By "scrolling" do you mean "display a new prompt"? I don't think that can be suppressed. But I wish it could be suppressed for keystroke aliases which produce no output. Maybe a new type of keystroke alias (@@@) could do just that.
 
By "scrolling" I meant just scrolling but your idea is better, you're right, I'm after a way to suppress the new prompt.

How about using the prompt to stop displaying a new prompt?

Code:
prompt $e[3A

Note well that you need to have the ANSI X3.64 support enabled. From the help file;

To utilize the TCC built-in ANSI X3.64 support you must enable it from the Windows tab of the configuration dialogs, or with the SETDOS /A command. You can determine whether or not ANSI X3.64 support is enabled with the _ANSI internal variable.

Reference ANSI X3.64 Command Reference in the help file for more info.

Joe
 
May 20, 2008
11,400
99
Syracuse, NY, USA
How about using the prompt to stop displaying a new prompt?

Code:
prompt $e[3A

He'd still get the couple of empty lines he doesn't want and subsequently have no prompt! I think he just wants **nothing visible** to happen when he uses an automatic (@@) keystroke alias that doesn't produce output.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Sorry, Joe, I didn't look at the ANSI reference. I don't think changing the prompt is a good idea, but moving the cursor up so the new prompt overwrites the old one is a really good idea.

Stefano, you can probably do what you want with something like this.
Code:
alias @@Alt-[=`@echo ^^^^e[2A & @SETFONT  eval[%@inc[%_font] mod %_nfonts]`
 
Similar threads
Thread starter Title Forum Replies Date
C Can't keep up with my typing? Support 9
M Why does HELP keep opening in the background? Support 0
vefatica Why does my forum theme keep changing? Support 1
CWBillow Wrong icons keep sticking Support 6
C Any reason to keep old versions? Support 8
vefatica Keep me logged in? Support 2
R wishlist: in update keep previous settings Support 9
p.f.moore Best way to keep a copy of a directory Support 3
vefatica Console not redrawn in BTM or with multiple commands Support 4
vefatica ShutdownPlugin not called when I X the console? (just curious) Support 4
vefatica Console popup windows don't work correctly Support 0
vefatica Cancelling selection in the console? Support 7
G Console exe up / down history Support 8
vefatica Console cursor height in Win 10 Support 3
vefatica BTM, elevated, console window caption? Support 4
vefatica TCEXIT not executed if I X the console Support 4
vefatica TYPE resets console tab settings Support 14
vefatica Undesired scrolling in Windows 10 enhanced console. Support 2
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
P No linefeed on last line of console window Support 2
fishman@panix.com TCC v22 & the Windows 10 Console Support 5
C TCMD not hiding the console Support 1
jaltman tcmd 21.0.19 win10 16179 console window loses content Support 2
vefatica Console output slower that before Support 8
L Fixed console line length in Take Command 19? Support 3
P Color directories in Win10 build 10586 console Support 11
Mordachai How to capture all console output from a TCMD session? Support 4
I Windows 10 console does not allow alt-F4 alias to complete Support 1
M Console-Mode (*.exe) works in TCC, not in TCMD Support 2
vefatica ON CLOSE, GOTO, and X-ing the console Support 5
I Attach console Support 3
C Screens of different size and hidden console Support 8
G Bug? TCC 16.03.55 Console Palette Support 4
C TCMD: Problem attaching console Support 4
vefatica OT: Windows console history? Support 7
D Console window titles / tab caption Support 4
vefatica ON <closing the console> Support 5
J Screen Capture (Console Mode) Support 5
vefatica Complete console caption as TCMD's caption? Support 1
Mordachai How to get a TC interface instead of a console for .btm, .bat, ? Support 10
fpefpe How to? Fonts / Size in console window Support 5
A How to? Is it possible to freeze one side of the console? Support 19
noahcoad @ruby closes console Support 2
noahcoad Start new console without focus Support 3
vefatica TCSH crashes only when in a TCC console Support 2
vefatica Very strange console font corruption Support 3
p.f.moore Is the TakeCommandIPC interface available from other console programs? Support 3
J How to? 'tab' characters in the console and clipboard 'copy' Support 1
vefatica Console not closing ... problem gone Support 1
T Wrong prompt in Windows command console Support 3

Similar threads