Re: ROOT 2.23.11 + Win98: usability issues (TAB completion, scroll bar,etc.)

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Mon Jan 17 2000 - 03:52:55 MET


> 1. TAB completion does not work "out of the box" when ROOT v. 2.23.11 is
> run under Win98.  When I press the TAB key (to complete the expansion
> for a file name, for example) I just hear beeps.

  ROOT on either platfrom used to employ "getline.c" subroutine to manage keyboard input.
  I've checked this piece of ROOT code again and found when one press "TAB" under 
  Windows  ROOT still does call the piece of code as follows:

              case '\t':                                        /* TAB */
                if (gl_tab_hook) {
                    tmp = gl_pos;
                    loc = gl_tab_hook(gl_buf, strlen(gl_prompt), &tmp);
                    if (loc >= 0 || tmp != gl_pos || loc == -2)
                        gl_fixup(gl_prompt, loc, tmp);
                }
                break;

 and the value of "gl_tab_hook" is non zero.
 I do not know whether it is proper way or not, but "beep" one can hear is to say
 the code does accept this "tab" symbol but has no idea what to do in turn.
 My guess UNIX doesn't call "getline" at all when the "tab" key is pressed.

                         Valery



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET