Re: X11 Terminal Not Buffering KeyStrokes
Re: X11 Terminal Not Buffering KeyStrokes
- Subject: Re: X11 Terminal Not Buffering KeyStrokes
- From: Noah Slater <email@hidden>
- Date: Mon, 10 Jan 2005 05:22:07 +0000
Visit your home folder in a terminal and list its hidden contents, do
you see something like the following:
you@computer: ~ $ ls -la | grep bash
-rw------- 1 you you 7408 9 Jan 11:07 .bash_history
if you do not see a file called .bash_history you might as well touch one.
Bash may not be able to write to your .bash_history file (I hope the
name aptly conveys it's use without further explanation) if your perms
are set wrong. Mine are quite strict, but still works. Try the
following command to see if it helps:
you@computer: ~ $ chmod 640 .bash_history
Quit the terminal ad restart to see if your bash history is working.
Failing that type the following command into your terminal:
you@computer: ~ $ bash -login
Try your history now, without closing the terminal. If it suddenly
started to work it means the terminal is not giving you a login shell,
which can apparently cause some problems.
One more thing to try is to put the following line in one of your bash files:
export HISTFILE=/Users/you/.bash_history
This could of course be quiet a few places depending on who your
machine is set up. The usual suspects are "/etc/profile",
"/etc/bashrc/", "~/.profile" and "~/.bashrc" respectively.
Hope his helps.
Noah Slater
On Sun, 9 Jan 2005 16:04:15 +0000, Tim Cutts <email@hidden> wrote:
>
> On 9 Jan 2005, at 1:48 pm, Mike Blonder wrote:
>
> > Hi.
> >
> > My Mac PowerBook G4 is running with an external monitor, keyboard and
> > mouse (the lid is closed). The monitor is shared via a KVM switch
> > ("Miniview" USB KVM). I use X Terminal to login to several remote
> > systems (1 MAC OS X, 1 MS Windows XP Pro, and 3 SuSE Linux Boxes).
> > The terminal is not buffering keystrokes.
>
> Do you really mean this, or do you mean that you don't have any command
> line history? It sounds like you mean the latter, judging by your next
> sentence. Buffering of keystrokes means something else - the storing
> of things you type if the program currently running can't accept them
> at the moment. You'll have seen this happen before - if the machine is
> very busy, sometimes the things you type take a second or two to appear
> on the screen, and then all appear in a rush. That's caused by
> "buffering of keystrokes".
>
> > The up and down arrows do not pull up any stored commands. Anyone
> > hit this problem? Anyone know how to correct it? I've searched
> > Apple Support, Googled it, etc. without success.
> >
> > Note: I experienced the same problem with Utilities/Terminal until I
> > switched from TCSH to BASH.
>
> tcsh does not save its command history by default. bash does. You can
> configure tcsh to save its command history, but since you've switched
> to bash, it's pointless telling you how. :-)
>
> How did you switch to bash? Did you do it the pukka way in the NetInfo
> database, or did you do something else, like change the command that
> X11 is starting?
>
> Tim
>
> PS. I suspect this is not really an X11 problem at all, but rather an
> issue with the way your command line shell is starting up differently
> in an xterm from in the apple Terminal application. You should check
> whether it's starting up as a login shell or not, for example. I seem
> to remember that X11 starts xterm as a login shell by default, but
> Terminal does not. Or maybe it's the other way around. Either way,
> the shell will be sourcing different startup files. Personally, I
> dislike UNIX' legacy distinction of login/non-login shells, and avoid
> it altogether by making ~/.bash_profile a symbolic link to ~/.bashrc,
> and then I get much the same environment in both.
>
> --
> Dr Tim Cutts
> Informatics Systems Group, Wellcome Trust Sanger Institute
> GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5 860B 3CDD 3F56 E313 4233
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (email@hidden)
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden