0
votes
1answer
83 views

Choosing shell for xterm in Cygwin

Basically my question is closely related to this one: http://stackoverflow.com/questions/21905380/how-do-i-get-cygwin-xterm-to-use-bash-and-not-sh I also want to set bash as the default shell for ...
1
vote
1answer
127 views

Why does my zsh prompt wander upwards when window is too narrow?

I have a weird behaviour that seems to be a combination of zsh and maybe urxvt (?) My setup is this: I start urxvt -e 'tmux' to get myself a terminal which launches zsh as the default shell. I then ...
0
votes
0answers
98 views

Find an xterm window by title, enter one command and press return using python/bash

I have an xterm window with a custom title. The xterm was fired up the following way: xterm -T customTitle I would like to enter a command (for example ls -l) into this xterm window from a ...
1
vote
1answer
170 views

Why do I sometimes get 'sh: $'\302\211 … ': command not found' in xterm/sh?

Sometimes when I simply type a valid command like 'find ...', or anything really, I get back the following, which is completely unexpected and confusing (... is command name I type): sh: ...
0
votes
1answer
77 views

Terminal auto-complete with @ symbol?

I have multiple directories that include the @ symbol within the directory name. When I do the normal tab to auto-complete a directory name it chokes if there is an @ symbol included in the name; ...
1
vote
2answers
321 views

xterm not wrapping text properly

I'm configuring both my gnome-terminal and xterm columns (i still haven't picked which of these I will be using) and I have a couple of issues I would like to fix: the typing area seems to be ...
2
votes
0answers
149 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
2
votes
1answer
116 views

Line wrapping issues in bash/php

I am writing a program that prints colored lines, and the more I do with it the more I find myself working around line wrapping issues that come up. It is a sort of terminal written in php, here is ...
1
vote
1answer
106 views

bash xterm : redefine “word” for killing word on command line

I want to modify the behaviour of 'backward-kill-word' in xterm command line. I'd like to remove "word" defined as space or / only. For example, if I type $ tttt/tt t@tt_ttt/ttt I will get, after ...
2
votes
1answer
185 views

bash xterm : how to get command line before typing enter

I try to define a custom behaviour of the backward-kill-word function in bash xterm. For that, I need to catch the command line before validate it. For instances, if I type sdcds/edfdD sdf/sdf without ...
1
vote
3answers
943 views

Arrow keys not working in vim on AIX machine

I'm currently developing some projects on an AIX machine connecting to ir using SSH. I compiled and installed vim in my home folder but I have some problems: When entering interactive mode, vim does ...
2
votes
1answer
543 views

'less' doesn't clear screen after quit

The default behavior for 'less' is to clear the screen after quitting. This behavior stopped when I started using: export TERM=xterm Now 'less' leaves the last page I viewed on the screen, and I ...
1
vote
2answers
532 views

Ubuntu lucid not reading etc profile for new XTerm

I've added abc.sh to /etc/profile.d When I start a new XTerm the environment variables in the abc.sh are not being set in the new XTerm. This works fine if I su - in an existing XTerm.
3
votes
1answer
663 views

How can I change the color of xterm titlebar?

I want to automatically change the color of my xterm titlebar. I would like to put code into my .bashrc so that the color changes automatically (say depending on the directory I am in). I know how to ...
4
votes
3answers
1k views

How can I invoke a function in bash shell script

I just wonder the distinction calling the function between $(one_function) and one_function in bash shell script. When I set the variable PS1 in ~/.bashrc, I can't invoke the function by one_func ...
5
votes
2answers
5k views

How do you change the default TERM value set at console login (Ubuntu)?

The $TERM shell value in Ubuntu defaults to "xterm" for a console login. How can I change it so it defaults to "xterm-color"? I'm asking because it looks like this is the easiest way to turn-on the ...