[GRASS-dev] [GRASS GIS] #1182: .inputrc improving msys WinGRASS command line

#1182: .inputrc improving msys WinGRASS command line
-----------------------+----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: svn-releasebranch64
Keywords: | Platform: MSWindows XP
      Cpu: All |
-----------------------+----------------------------------------------------
The attached file comes from
http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe. It fixes couple of
issues with msys WinGRASS command line, e.g. home, end keys printing "~"
instead of moving the cursor.

Could this file be included in WinGRASS installer? It should go to
C:\Program Files\GRASS-64-SVN\msys\home\$USERNAME\.

Works OK for me.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1182&gt;
GRASS GIS <http://grass.osgeo.org>

#1182: .inputrc improving msys WinGRASS command line
---------------------------------+------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: svn-releasebranch64
Keywords: wingrass, msys rxvt | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------
Changes (by hamish):

  * keywords: => wingrass, msys rxvt
  * type: defect => enhancement

Comment:

{{{
35 "\e[5~": beginning-of-history # Page up
36 "\e[6~": end-of-history # Page down
}}}

fwiw I prefer to use page up/down as an easier replacement for bash's
ctrl-r,

{{{
set prefer-visible-bell

# -------- Bind page up/down with history search ---------
"\e[5~": history-search-backward
"\e[6~": history-search-forward
}}}

thanks for the home/end tip, I struggle with that on a few servers.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1182#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1182: .inputrc improving msys WinGRASS command line
---------------------------------+------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: svn-releasebranch64
Keywords: wingrass, msys rxvt | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by hamish):

fwiw, for me in Wingrass 6.5svn on XP with the MSys rxvt console, these
two are the needed ones:
{{{
"\e[7~": beginning-of-line
"\e[8~": end-of-line
}}}

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1182#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1182: .inputrc improving msys WinGRASS command line
---------------------------------+------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: svn-releasebranch64
Keywords: wingrass, msys rxvt | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by glynn):

Replying to [ticket:1182 msieczka]:

> The attached file comes from
http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe. It fixes couple of
issues with msys WinGRASS command line, e.g. home, end keys printing "~"
instead of moving the cursor.

Is there some reason for using MSys' rxvt? There are a lot of known
problems with it, and (AFAICT) no actual advantages.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1182#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1182: .inputrc improving msys WinGRASS command line
---------------------------------+------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.1
Component: Packaging | Version: svn-releasebranch64
Keywords: wingrass, msys rxvt | Platform: MSWindows XP
      Cpu: All |
---------------------------------+------------------------------------------

Comment(by hamish):

perhaps C:\Program Files\GRASS...\msys\etc\inputrc.default is the file to
edit? or is it C:\Program Files\GRASS...\msys\home\User\.inputrc ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1182#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>