Chapter 3: Using GNU Interactive Tools
3.1.15 Locking your console
Having a lock feature might be a good idea and, since not all the UNIX systems provide one,
gitfm tries to get around the problem . ..
Prompt the user for a password and locks the console until the same
password is reinserted (‘lock’).
3.1.16 Refreshing the screen contents
Sometimes your screen needs to be refreshed. Just think about what happens when some-
body wants to talk with you and the talk daemon writes something like this
Message from Talk
Daemon@galei.cs.vu.nl at 12:15 ...
talk: connection requested by firstname.lastname@example.org.
talk: respond with: talk email@example.com
on your screen. And sometimes you might also want to re-read the current directories.
gitfm provides a built-in command for refreshing the screen contents.
Re-read the directories contents and refresh the screen (‘refresh’).
3.1.17 Resetting your terminal
Call reset in order to reset the terminal to its default
3.1.18 Mounting/unmounting le systems
People dealing with lots of les usually need to save/restore/copy les from/to other le
systems. In order to be more ecient, gitfm provides a set of key bindings for mounting
and unmounting le systems. SeeSection3.6[gitmount],page31, for more information.
The default key bindings set has been designed to work under Linux, but it can be easily
changed for other UNIX systems with dierent device names. Reading the conguration le
‘gnuitrc.common’ should be enough. SeeSection188.8.131.52[HotKeys],page24, for more
As a convention, the ‘/mnt’ directory is used to store an empty subdirectory for each
mountable le system. Each le system is actually mounted in its counterpart ‘/mnt’ sub-
directory. Try to follow this convention since the gitmount script is heavily based on it.
SeeChapter4[Customization],page33, for more information.
ESC m a
Call mount(1) in order to mount the rst
(‘/dev/fd0’) in the ‘/mnt/fd0’ directory (‘MOUNT-A’).
ESC m b
Call mount(1) in order to mount the second
(‘/dev/fd1’) in the ‘/mnt/fd1’ directory (‘MOUNT-B’).
ESC m c