Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
Chet Ramey wrote: On 7/14/15 7:49 PM, Linda Walsh wrote: --- Yeah, figures it would work right in the BASH dir... BUT... Ishtar:tools/bash/bash-4.3> cd /suse132 --- both of the below print diagonally because they have no line endings. I can't reproduce any of this on SUSE 13. What does `stty size' say your screen size is? --- 13.1 and 13.2 are rather different. size: 40 80 -a: stty -a speed 38400 baud; rows 40; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^H; kill = ^X; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^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 TERM=linux - I could see a program relying on wrap and not putting out CRLF, but that doesn't seem to be the case. Also from my experience, so far, I've only seen the stairstepping alignment happen when completion is limited to 1 column (one or more items are >=40). Don't stress too much about it -- I'll probably uncover the problem eventually -- was just wondering if anyone knew of a case where such oddness happened. Sounds like I have another mystery behavior. ;-) -l
Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
On 7/14/15 7:49 PM, Linda Walsh wrote: > --- > Yeah, figures it would work right in the BASH dir... BUT... > > Ishtar:tools/bash/bash-4.3> cd /suse132 > --- both of the below print diagonally because they have no line endings. I can't reproduce any of this on SUSE 13. What does `stty size' say your screen size is? Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
Linda Walsh wrote: Chet Ramey wrote: Am still on 4.2, but in the bashdir, I get: reset ... ^L Erase is control-H (^H). Kill is control-X (^X). Ishtar:law> hhsfshsdfhl^C Ishtar:law> bind Ishtar:law> cd ../tools/bash/bash-4.3 Ishtar:tools/bash/bash-4.3> ls b bash*bashintl.h bashversion* buildversion.o bashansi.h bashjmp.hbracecomp.c builtins/ bashbug* bashline.c bracecomp.o builtins.h bashhist.c bashline.h braces.c bashhist.h bashline.o braces.o bashhist.o bashtypes.h buildsignames.o --- weird -- the last line above was extra long In tbird they are lined up... 2 columns,,but the 3rd line from the top is 96-97 chars wide -- i.e. on an 80-wide terminal, it would all be 1 column. Before... when I turned it off, I had one screen where it printed in 1 column for completion, so I don't know what causes it to switch into the mode where it thinks my term is 90+ columns wide... Ishtar:/suse132> ls e17 e17-0.17.6-2.1.10.x86_64.rpm e17-branding-openSUSE-0.1-10.1.2.x86_64.rpm e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm e17-devel-0.17.6-2.1.10.x86_64.rpm e17-doc-html-0.17.6-2.1.10.x86_64.rpm e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm e17-theme-a-os-agust-v3-1-2.1.9.noarch.rpm e17-theme-a-os-detour-1-2.1.9.noarch.rpm e17-theme-a-os-green-1-2.1.9.noarch.rpm e17-theme-a-os-miguel-v3-1-2.1.9.noarch.rpm e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm e17-theme-darkness-81195-2.1.9.noarch.rpm e17-theme-default-0.17.6-2.1.10.x86_64.rpm e17-theme-edjy-1-2.1.9.noarch.rpm e17-theme-openSUSE-20131101.1-2.1.9.noarch.rpm Ishtar:/suse132> bind 'set print-completions-horizontally' off Ishtar:/suse132> ls e17 e17-0.17.6-2.1.10.x86_64.rpm e17-branding-openSUSE-0.1-10.1.2.x86_64.rpm e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm e17-devel-0.17.6-2.1.10.x86_64.rpm e17-doc-html-0.17.6-2.1.10.x86_64.rpm e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm e17-theme-a-os-agust-v3-1-2.1.9.noarch.rpm e17-theme-a-os-detour-1-2.1.9.noarch.rpm e17-theme-a-os-green-1-2.1.9.noarch.rpm e17-theme-a-os-miguel-v3-1-2.1.9.noarch.rpm e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm e17-theme-darkness-81195-2.1.9.noarch.rpm e17-theme-default-0.17.6-2.1.10.x86_64.rpm e17-theme-edjy-1-2.1.9.noarch.rpm e17-theme-openSUSE-20131101.1-2.1.9.noarch.rpm This is my home-dir ".inputrc", BTW, grep -Pv "^#|^\s*$" ~/.inputrc set history-size=-1 set completion-ignore-case on set convert-meta off# don't strip high bit set expand-tilde on set input-meta on set mark-directories on set output-meta on set menu-complete-display-prefix on set print-completions-horizontally off set show-all-if-unmodified on set visible-stats on "\C-p": paste-from-clipboard $if mode=vi set editing-mode vi set keymap vi $endif $if pcalc set editing-mode vi set keymap vi $endif $if bash set completion-map-case on set completion-prefix-display-length=256 set keymap vi-insert set expand-tilda on set history-preserve-point on set mark-symlinked-directories on set page-completions on set quoted-insert C-v set show-all-if-ambiguous on set tab-insert on "\C-ep": "PATH=${PATH}\e\C-e\C-a\ef\C-f" "\C-e\"": "\"\"\C-b" "\C-e\\": "\\" "\C-eq": "\eb\"\ef\"" "\C-er": redraw-current-line "\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y=" $endif "\M-t": transpose-chars "\M-TAB": completion "\M-u": upcse-word "\M-l": downcase-word "\M-c": capitalize-word "\M-w": unix-filename-rubout "\M-?": possible-completions "\M-*": insert-completions "\M-m": menu-complete "\M-x(":start-kbd-macro "\M-x)":end-kbd-macro "\M-xe":call-last-kbd-macro "\M-r":revert-line "\M-&":tilde-expand TAB:tab-insert "\M-`":complete "`":complete "\C-a":dump-functions "\C-b":dump-variables "\C-t":dump-macros
Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
Chet Ramey wrote: Am still on 4.2, but in the bashdir, I get: reset ... ^L Erase is control-H (^H). Kill is control-X (^X). Ishtar:law> hhsfshsdfhl^C Ishtar:law> bind Ishtar:law> cd ../tools/bash/bash-4.3 Ishtar:tools/bash/bash-4.3> ls b bash*bashintl.h bashversion* buildversion.o bashansi.h bashjmp.hbracecomp.c builtins/ bashbug* bashline.c bracecomp.o builtins.h bashhist.c bashline.h braces.c bashhist.h bashline.o braces.o bashhist.o bashtypes.h buildsignames.o Ishtar:tools/bash/bash-4.3> bind 'set print-completions-horizontally on' Ishtar:tools/bash/bash-4.3> ls b bash*bashansi.h bashbug* bashhist.c bashhist.h bashhist.o bashintl.h bashjmp.h bashline.c bashline.h bashline.o bashtypes.h bashversion* bracecomp.c bracecomp.o braces.c braces.o buildsignames.o buildversion.o builtins/ builtins.h --- Yeah, figures it would work right in the BASH dir... BUT... Ishtar:tools/bash/bash-4.3> cd /suse132 --- both of the below print diagonally because they have no line endings. Ishtar:/suse132> ls e17 e17-0.17.6-2.1.10.x86_64.rpm e17-branding-openSUSE-0.1-10.1.2.x86_64.rpm e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm e17-devel-0.17.6-2.1.10.x86_64.rpm e17-doc-html-0.17.6-2.1.10.x86_64.rpm e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm e17-theme-a-os-agust-v3-1-2.1.9.noarch.rpm e17-theme-a-os-detour-1-2.1.9.noarch.rpm e17-theme-a-os-green-1-2.1.9.noarch.rpm e17-theme-a-os-miguel-v3-1-2.1.9.noarch.rpm e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm e17-theme-darkness-81195-2.1.9.noarch.rpm e17-theme-default-0.17.6-2.1.10.x86_64.rpm e17-theme-edjy-1-2.1.9.noarch.rpm e17-theme-openSUSE-20131101.1-2.1.9.noarch.rpm Ishtar:/suse132> bind 'set print-completions-horizontally' off Ishtar:/suse132> ls e17 e17-0.17.6-2.1.10.x86_64.rpm e17-branding-openSUSE-0.1-10.1.2.x86_64.rpm e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm e17-devel-0.17.6-2.1.10.x86_64.rpm e17-doc-html-0.17.6-2.1.10.x86_64.rpm e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm e17-theme-a-os-agust-v3-1-2.1.9.noarch.rpm e17-theme-a-os-detour-1-2.1.9.noarch.rpm e17-theme-a-os-green-1-2.1.9.noarch.rpm e17-theme-a-os-miguel-v3-1-2.1.9.noarch.rpm e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm e17-theme-darkness-81195-2.1.9.noarch.rpm e17-theme-default-0.17.6-2.1.10.x86_64.rpm e17-theme-edjy-1-2.1.9.noarch.rpm e17-theme-openSUSE-20131101.1-2.1.9.noarch.rpm
Re: auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
On 7/14/15 3:25 AM, Linda Walsh wrote: > When I go for auto complete now, the filenames no longer line up: > > Ishtar:/suse132> ls e17- > e17-0.17.6-2.1.10.x86_64.rpm > e17-branding-openSUSE-0.1-10.1. > 2.x86_64.rpm e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm > e17-devel-0.1 > 7.6-2.1.10.x86_64.rpm e17-doc-html-0.17.6-2.1.10.x86_64.rpm > e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm > e17-theme-a-os-agust-v3-1- > 2.1.9.noarch.rpm e17-theme-a-os-detour-1-2.1.9.noarch.rpm > e17-them > e-a-os-green-1-2.1.9.noarch.rpm > e17-theme-a-os-miguel-v3-1-2.1.9.noarch > .rpm e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm > e17-theme-darkness-81 > 195-2.1.9.noarch.rpm > e17-theme-default-0.17.6-2.1.10.x86_64.rpm e17 > -theme-edjy-1-2.1.9.noarch.rpm > e17-theme-openSUSE-20131101.1-2.1. > 9.noarch.rpm > Ishtar:/suse132> ls e17- Your terminal is messed up. Try `reset'. > -- Closest thing was changing the > set print-completions-horizontally to 'on' in .input.rc > > Uhoh, that does affect it, but then the sort order is messed up. The sort order is supposed to change; that's the whole reason for that option. > So how can I get horizontal sorting order without it being all one line? Reset your terminal. When I try this, I get: $ ls b bash bashhist.obashversion.dSYM/ buildsignames.o bashbug bashline.obracecomp.o buildversion.o bashenv bashversion braces.o builtins/ $ bind 'set print-completions-horizontally on' $ ls b bash bashbug bashenv bashhist.o bashline.obashversion bashversion.dSYM/ bracecomp.o braces.o buildsignames.o buildversion.obuiltins/ $ ls b bash bashbug bashenv bashhist.o bashline.obashversion bashversion.dSYM/ bracecomp.o braces.o buildsignames.o buildversion.obuiltins/ on bash-4.4-alpha, hitting TAB after the `b' on each line. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
auto-complete going on a diagonal -- "set print-completions-horizontally on => "equals diagonally"
When I go for auto complete now, the filenames no longer line up: Ishtar:/suse132> ls e17- e17-0.17.6-2.1.10.x86_64.rpm e17-branding-openSUSE-0.1-10.1. 2.x86_64.rpm e17-branding-upstream-0.17.6-2.1.10.x86_64.rpm e17-devel-0.1 7.6-2.1.10.x86_64.rpm e17-doc-html-0.17.6-2.1.10.x86_64.rpm e17-profiles-openSUSE-20131019-2.1.4.noarch.rpm e17-theme-a-os-agust-v3-1- 2.1.9.noarch.rpm e17-theme-a-os-detour-1-2.1.9.noarch.rpm e17-them e-a-os-green-1-2.1.9.noarch.rpm e17-theme-a-os-miguel-v3-1-2.1.9.noarch .rpm e17-theme-a-os-vision-v3-1-2.1.9.noarch.rpm e17-theme-darkness-81 195-2.1.9.noarch.rpm e17-theme-default-0.17.6-2.1.10.x86_64.rpm e17 -theme-edjy-1-2.1.9.noarch.rpm e17-theme-openSUSE-20131101.1-2.1. 9.noarch.rpm Ishtar:/suse132> ls e17- --- A bit more investigating, and it looks like it streaming out the filenames with NO LF's (it's all one big long string if I copy it from a window that supports wrapped lines as contiguous -- vs. windows cmd, above. Either way, it's not putting out any line endings. From the number of spaces, it looks like it is thinking my terminal is 98 or 49 spaces wide (i.e. resizing the window makes the names line up at those values). But it doesn't like my old fashion 80-wide term. I'm thinking maybe some library is messed up, since I don't recall changing anything in my bash setup recently. -- Closest thing was changing the set print-completions-horizontally to 'on' in .input.rc Uhoh, that does affect it, but then the sort order is messed up. i.e. ls a f k p u z b g l q v instead of a b c d e f So how can I get horizontal sorting order without it being all one line?