Why isn't SecCRT recognizing tabs? (anymore)?
SecCRT is usually pretty good about preserving the characters that are sent
to the screen, but unless I don't understand something, I'm not seeing the tab-char when it is output to the screen.
> echo -e "0\t1\t2\t$"|hexdump -C
00000000 30 09 31 09 32 09 24 0a |0.1.2.$.|
> echo -e "0\t1\t2\t$"
0 1 2 $
> hexdump -C
0 1 2 $
00000000 30 20 20 20 20 20 20 20 31 20 20 20 20 20 20 20 |0 1 |
So first echo directly into hexdump shows tab, 09 between numbers.
Second echo went to screen and I did a select (copy)
then ran hexdump again, and pasted the copy into hexdump.
Now I see the tab expanded into spaces. :-(
Now for converse examples.
gvim->gvim, tabs preserved.
gvim->tty-based vim in SecCRT window: preserved!
tab-containing text (from gvim) pasted into 'hexdump -C' -- shows the
09 for tabs.
.....So I hallucinated that this used to work...and it sorta does --- if the text
contains tabs, they get expanded as such when I past them. But selecting
tab-text on the screen and copying it seems to lose the characters that are on
Has it always been that way? I note that changing the tab stop works correctly on
expansion -- it seems to be trying to copy them off the page.
With other tty emulators and SCrt of the past, a line-break generated by a line-feed vs. wrap-around wasn't distinguished upon copy/past either, but now it is...is something missing for tabs?
p.s. seems to be same with bash or ash. I am remoting into a linux box running a 5.13 kernel from Win7x64SP1.
stty settings are:
> stty -a
speed 38400 baud; rows 45; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^X; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -flusho -extproc
Ishtar:cache/suse> echo $TERM
Last edited by Linda; 07-19-2021 at 10:14 PM. Reason: added config info @ end
Please send email to email@example.com for further assistance with this issue.
YouTube Channel: https://www.youtube.com/vandykesoftware
|copy , select , tab|