From vinod@cse.iitb.ernet.in Sat Sep 10 01:55:06 1994
Received: from sangam.ncst.ernet.in (sangam.ncst.ernet.in [144.16.11.1]) by Csli.Stanford.EDU (8.6.9/8.6.9) with ESMTP id BAA04175 for <malouf@csli.stanford.edu>; Sat, 10 Sep 1994 01:55:00 -0700
Received: from iitb.ernet.in (gateway.iitb.ernet.in [144.16.96.2]) by sangam.ncst.ernet.in (8.6.8.1/8.6.6) with ESMTP id TAA01946 for <malouf@csli.stanford.edu>; Fri, 9 Sep 1994 19:45:41 +0530
Received: from kailash.cse.iitb.ernet.in  by iitb.ernet.in (8.6.9/IITB-MHS-7.0)
	id TAA21784; Fri, 9 Sep 1994 19:43:03 +0530
Received: by kailash.cse.iitb.ernet.in (4.1/SMI-4.1)
	id AA26823; Fri, 9 Sep 94 14:18:16 GMT
Date: Fri, 9 Sep 94 14:18:16 GMT
From: vinod@cse.iitb.ernet.in (Vinod G Kulkarni)
Message-Id: <9409091418.AA26823@kailash.cse.iitb.ernet.in>
To: malouf@csli.stanford.edu
Subject: dvgt-3.51l2 ... Console mappings for linux
Status: RO


Hi Rob,
   The dvgt package now works great from linux console. 
However, the entering of line commands is annoying. We could instead use
mappings using loadkeys of linux. We  can then use single key presses 
for most commands. 
I suggest that this map file, and a small shell script which allows one
use it (and to set the GSVGAMODE environmental variable and/or PKFONTS), be
distributed along with the package. It will greatly help newbies --
many of them aren't even aware of setting graphics modes.  (You could 
even post it to cola, since it really makes using dvgt a pleasure.)
NOTE: The key bindings remain effective when you switch the consoles.
So you can't use the arrow keys in other consoles while dvgt runs. 


Regards,

Vinod
vinod@cse.iitb.ernet.in

==================dvgtlin========================
#!/bin/bash

# The new latex2e font set distributed by slackware 2.0. It is just bare
# minimum ... 
export PKFONTS=/usr/TeX/lib/texmf/fonts/public/cm/pk/cx/

# See all possible modes in your vga.h. e.g.: G640x480x256, G1024x768x256
export GSVGAMODE=G800x600x256
loadkeys /usr/local/lib/dvgt/dvgt.map
dvgt -v linux  $*
loadkeys /usr/lib/kbd/keytables/us.map
================================================
==================dvgt.map======================
string  F11 = "ZCI 1.2\n"       # Zoom In
string  F12 = "ZCO 1.2\n"       # Zoom Out
keycode 78 = F11                # + key on the numpad
keycode 74 = F12                # - key on the numpad

string F13 = "C CM d 2\015"     # Arrow keys should move the window by 2 cms. 
string F14 = "C CM u 2\015"
string F15 = "C CM r 2\015"
string F16 = "C CM l 2\015"
string F17 = "C CM d 6\015"     # Control-arrow keys should move the window by 
string F18 = "C CM u 6\015"     # larger distance - 6 cms.
string F19 = "C CM r 6\015"
string F20 = "C CM l 6\015"
keycode 108 = F13               # Down Arrow key 
keycode 103 = F14               # Up Arrow key
keycode 106 = F15               # Left Arrow Key 
keycode 105 = F16 		# Right arrow key
control keycode 108 = F17       # Corresponding keys with control pressed.
control keycode 103 = F18       # 
control keycode 106 = F19       # 
control keycode 105 = F20       # 

# F21 to F26 are unsigned are available. Using example above, add
# Whatever strings you like.

# For more details, see man pages for loadkeys and dumpkeys.
====================================================================


