Ctrl-x?

May 20, 2008
11,380
98
Syracuse, NY, USA
4NT (I have v8) used to process Ctrl-x and show an up-arrow symbol. And with 4NTv8 I could "EscapeChar=Ctrl-x". None of the TCC's I have (v11 - v16) seem to process Ctrl-X at all and I can't make it the escape character.

And ... TCC processes Ctrl-g (showing a solid circle) and the directive EscapeChar=Ctrl-g works. But the Option\Advanced\SpecialCharacters dialog will not let me enter any more than a single keystroke and can't be used to specify a key combination as the escape character.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
OK, Ctrl-X has a function (expand variables). I can make it a "NormalKey" but thereafter, I can't make it "EscapeChar".
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
I think the EscapeChar directive, and probably CommandSep and ParameterChar too, expects its value to be less than 256 and not a control character. Just basic sanity checking.... Might be nice if you could specify higher-order Unicode characters using decimal or hex, but of course that would be a new feature and therefore would not filter down to TCC/LE.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
I think the EscapeChar directive, and probably CommandSep and ParameterChar too, expects its value to be less than 256 and not a control character. Just basic sanity checking.... Might be nice if you could specify higher-order Unicode characters using decimal or hex, but of course that would be a new feature and therefore would not filter down to TCC/LE.

And it wouldn't work for anybody (like Vince!) who isn't using a Unicode font.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
How do I make Ctrl-X my escape char with the "EscapeChar" directive?
Never mind. It wasn't working because I had a second "ExcapeChar=^" later in the INI file. Now "EscapeChar=" works with either "Ctrl-X" or a literally inserted character 24.

Can it be from the OPTION dialog?
 
May 20, 2008
11,380
98
Syracuse, NY, USA
FWIW, you can enter (many) control characters in IDE/BDEBUGGER with the Scintilla Ctrl-Shift-... mechanism, and (possible more) with the Windows Alt-(KeyPad)0... mechanism.

I'm very tempted to go back to the 4DOS escape character, especially if I would never again have to fight with '^'. I don't use Ctrl-X for anything.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
FYI, I successfully use the 4DOS default special characters (CommandrSep, EscapeChar, ParameterChar) in all versions of 4NT and TCC up through 16.0.43 by specifying in its %_ININAME. No NormalKey required.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Never mind. It wasn't working because I had a second "ExcapeChar=^" later in the INI file. Now "EscapeChar=" works with either "Ctrl-X" or a literally inserted character 24.

Can it be from the OPTION dialog?

OPTION is using a Windows edit control, which does not allow you to enter control characters.

I could subclass (or replace) the edit controls, but that would introduce new problems:
  1. The control characters won't appear as anything printable in most fonts
  2. It would be a constant support headache for the people who inadvertently entered a control character
  3. It would introduce a MAJOR incompatibility
  4. Nobody has ever asked for it until now
And given the amount of work that would be required, I'm not going to consider it until there's a substantial demand for it in the feedback forum.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
The real problem here is that a few users want to push beans up everybody else's nose too!

Well, I don't have a strong opinion here, and I guess it makes sense that the .INI directives should be more restrictive than SETDOS. But I suggest that, instead of disallowing everything above 0xFF, it might make more sense to disallow any character for which iswalnum() is nonzero. (I would also reject iswcntrl() characters, on the theory that nobody remembers the 4DOS defaults anymore; but that theory is obviously wrong.)
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Well, I don't have a strong opinion here, and I guess it makes sense that the .INI directives should be more restrictive than SETDOS. But I suggest that, instead of disallowing everything above 0xFF, it might make more sense to disallow any character for which iswalnum() is nonzero. (I would also reject iswcntrl() characters, on the theory that nobody remembers the 4DOS defaults anymore; but that theory is obviously wrong.)

EscapeChar is already a 16-bit (i.e., Unicode) character.
 
Similar threads
Thread starter Title Forum Replies Date
R Emacs-style cmdline editing Ctrl-K Support 0
vefatica Can I alias @@Ctrl-Shift-Alt-u? Support 4
cgunhouse Ctrl-C from within a library function Support 6
Alpengreis Fixed [v26.00.26] Crash after answering INKEY with <Ctrl>+C Support 1
vefatica Ctrl-F? Support 3
MickeyF expand alias in cmdline with Ctrl-F in TCC Support 21
MickeyF Ctrl-S and Ctrl-Q in TCC Support 6
Peter Murschall IDE: Ctrl-W is a Harakiri Command ! Support 23
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
samintz TCEDIT Ctrl-S Support 2
vefatica Ctrl-Alt-L (R, Left, Right). Support 8
M Ctrl-C when using command line history does nothing Support 2
V Ctrl-Home/End don't work in Win10 Support 3
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica TPIPE.EXE crashes on Ctrl-C Support 9
Peter Murschall IDE destroys Text on Ctrl-U/Ctrl-Shift-U Support 12
vefatica Ctrl-Enter in command history window? Support 8
vefatica TPIPE crashes on Ctrl-C Support 1
cgunhouse Ctrl + Shift keys and Paste (drop down menu and V) Support 4
M View doesn't recognize Ctrl+End and Ctrl+Pos1 Support 2
M Ctrl-End doesn't work. DelToEnd is not executed Support 13
C Output continues after Ctrl-Break Support 8
J How to? Debug Keyboard Shortcuts (Ctrl-A not remapping?) Support 8
Jay Sage Ctrl-C Not Working Reliably to Copy Screen Content Support 4
C How to? ctrl-c does not prompt "Terminate batch job" Support 2
vefatica Ctrl-T and Ctrl-Shift-T Support 6
P Disable global hotkey Ctrl+Shift+T Support 19
vefatica DATEMONITOR + Ctrl-C crashes TCCv15 Support 5
dcantor Fixed Ctrl+Shift+Insert repeats last character Support 3
A WAD No newlines in copy with Ctrl-Ins Support 2
A Ctrl-1 and the command history Support 5
vefatica Ctrl-Up/Down? Support 21
E Ctrl-V does not always work in BDEBUGGER Support 4
vefatica Should Ctrl-C interrupt a COPY? Support 2
M Ctrl-C and Java Support 19
K Ctrl-D alias no longer works Support 4
vefatica Ctrl-F1? Support 0
J CTRL-C does not work on Windows 7 64-bit Support 3
dcantor Does variable expansion (ctrl-x) actually work? Support 27
E Ctrl+C not working as expected Support 8
Juanma Barranquero Ctrl-C trouble Support 1
Fross CTRL-C in V10 Support 3
S Ctrl-C handling while piping Support 0
vefatica .PL and Ctrl-C Support 3
vefatica LIST, Ctrl-C leaves visual artifact Support 0

Similar threads