Re: auto-complete going on a diagonal -- set print-completions-horizontally on = equals diagonally

2015-07-19 Thread Linda Walsh



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 = undef;
eol2 = undef; swtch = undef; 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

2015-07-18 Thread Chet Ramey
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/




auto-complete going on a diagonal -- set print-completions-horizontally on = equals diagonally

2015-07-14 Thread Linda Walsh

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 complete
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?






Re: auto-complete going on a diagonal -- set print-completions-horizontally on = equals diagonally

2015-07-14 Thread Chet Ramey
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/



Re: auto-complete going on a diagonal -- set print-completions-horizontally on = equals diagonally

2015-07-14 Thread Linda Walsh



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 bcomplete
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 bcomplete
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 e17complete
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 e17complete
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