A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

learn more… | top users | synonyms

2
votes
2answers
5k views

Displaying and updating a counter in bash

I think it's something like this: (Fedora14/bash) #!/bin/bash for i in {0..10..1}; do echo -e "$i"'\c' echo -e "\n\r" sleep 1 done But it doesn't work. Purpose: like this, but without the "clear":...
0
votes
0answers
96 views

Open Sakura in home directory [duplicate]

Possible Duplicate: Open Sakura in home directory I love XTerm but I would like to enable tabbing (multiple terminals in one window separated by tabs). The terminal Sakura is based on XTerm ...
2
votes
1answer
659 views

Open Sakura in home directory

I love XTerm but I would like to enable tabbing (multiple terminals in one window separated by tabs). The terminal Sakura is based on XTerm and tabbing is enabled. I can open XTerm in my home ...
0
votes
0answers
254 views

What is the difference between a terminal and a console in unix? [duplicate]

Possible Duplicate: What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'? What is the difference between a terminal and a ...
3
votes
2answers
3k views

Trying to print up down arrow keys

I have this: I read down arrow key abc@abc-ubuntu:~/bashpratice$ read -n 3 key ^[[Babc@abc-ubuntu:~/bashpratice$ I am able to grep for it abc@abc-ubuntu:~/bashpratice$ echo $key | grep '\[' [B ...
6
votes
1answer
2k views

Is there a way to show previous messages in screen?

When I use screen I can only see the current data on the terminal (commands, messages, etc.). Is there a way, apart from printing anything I want to a file, to see the previous messages (the same ...
2
votes
1answer
730 views

Setting only of background or text color back to default

Is it possible to only reset the background color or text color back to default (not both!) Example: echo -e "\033[32;41mFoo bar\033[30m baz" # Doesn't reset background color echo -e "\033[32;41mFoo ...
6
votes
2answers
6k views

xterm colors are too bright

I've just started using dwm a couple days ago and I'm using xterm (uxterm) as a terminal emulator. However, I'm noticing that certain applications (like vi/vim, ls, and others) that output in color ...
2
votes
2answers
928 views

How to temporarily disable the Escape key in a Terminal?

I am parsing keyboard input via read -n 1 and I haven't found a way to distinguish between an actual key-press of the Escape key and the first Escape character (byte) of a control sequence generated ...
17
votes
9answers
35k views

Best way to use a shell with Cygwin in Windows 7

I installed Cygwin, to be disappointed that bash by default runs within "cmd.exe". I googled around and found Console2. It's not a particularly well-designed application, as doing adjustments is ...
3
votes
1answer
837 views

Keyboard input not displayed on the screen?

We use the `exceed tool to connect to our UNIX servers, but sometimes the command-line behaves erratically. When I am typing some command on the command-line, nothing happens -- nothing is displayed ...
4
votes
3answers
1k views

clear command in Konsole

I know about the Linux clear command, but it just moves the previous output from the visible part of terminal window (KDE Konsole). I can still scroll up and see all previous text. Is there similar ...
4
votes
3answers
2k views

Read and process a string, char by char, yet allow user to simple line edit the input

I want to incrementally read a line of input from the terminal, and allow the user some basic line editing functionality; INS, DEL, RIGHT, LEFT HOME, END, BACKSPACE Each time the string is ...
6
votes
1answer
251 views

How can I output “temporarily” to the shell, like zsh tab completion does?

In zsh shell, when you hit Tab twice to get tab completion, your options are displayed below your prompt. But when you make a selection, the options disappear. I have a little script that outputs ...
7
votes
3answers
1k views

Bash history number not starting at 1?

I was customizing my bash prompt (I'm on OS X 10.7) when I came across something strange. Within my prompt I included !, which should give me the history number. However the history number always ...
11
votes
2answers
22k views

How can I switch between ttys without using screen?

So lets say you boot up your linux install all the way to the desktop. You start up a gnome-terminal/konsole/whatever so you have a tty to enter commands to. Now lets say I SSH into that same ...
2
votes
2answers
794 views

Computer terminal and virtual console [duplicate]

Possible Duplicate: What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'? I was wondering what relations and differences are ...
2
votes
5answers
2k views

How can I run a process in a terminal window and then hide that window?

I want to run python ~/program/proxy.py in a terminal when I boot up. And then hide this terminal window (because it is just a proxy program, and I don't want to see the debug info). So how can I get ...
4
votes
1answer
1k views

urxvt transparent cursor

I've changed my .Xdefaults for a black background, white foreground, but my cursor is now opague. I can't see the letter I'm over, and worse, I can't see my screen hardstatus. Google is just pulling ...
20
votes
4answers
6k views

What happens to the output of a process that has been disowned and lost its terminal?

If I close the virtual terminal, where some process was started, does the output just go straight to /dev/null, or can it pollute memory somehow? Can I anyhow grab the output to continue reading it at ...
3
votes
1answer
506 views

Conditionally killing a process based on its output

I have a REPL (read-eval-print-loop) for the Clojure programming language listening on a network socket. I can send it code over the network and the code will be evaluated and the answer sent back to ...
6
votes
3answers
1k views

Why does Ctrl+Arrow make my terminal switch to a strange mode?

When i type Ctrl+Left or Ctrl+Right within Guake or gnome-terminal the last one's behaviour turns to a some kind of non-usual mode: - key acts like arrow up and + like arrow down, v runs Nano, etc. ...
6
votes
3answers
4k views

Launching application from terminal [duplicate]

Possible Duplicate: How can I close a terminal without killing the command running in it? How to launch a GUI application (e.g. gedit) from terminal and detach it from there in one step?
2
votes
3answers
15k views

Why use `sudo yum install <pkgs>` when I can use `yum install <pkgs>`?

The above question can also be rephrased to, what is the use of the sudo command? man pages for sudo in the bash shell has the following description. sudo, sudoedit - execute a command as another ...
3
votes
2answers
1k views

How to script /etc/issue?

I would like to pipe my tty number through figlet (ASCII generator) for the /etc/issue (message shown before login). Obviously this means I can't just update it from /etc/rc.local. On my system (Arch)...
8
votes
1answer
11k views

How to change tty login prompt?

To be clear, I am not referring to /etc/issue (shown before the prompt) or /etc/motd (shown after login), but the prompt itself, which is currently hostname login: For good measure, I am running ...
0
votes
1answer
97 views

Ubuntu x86 10.10 terminal

I just downloaded a Ubuntu v10.10 vmware image for Windows. I'm trying to install a web application that can only run on Linux MySQL, Apache and PHP. How do I open a terminal in Ubuntu?
0
votes
3answers
409 views

What to change to place text in the centre of the screen [closed]

The following program will clear the screen #include <stdio.h> int main() { fputs("\033[2J", stdout); return 0; } So, what should I modify/add in the above code to put a text string ...
5
votes
2answers
7k views

How can I make PuTTY compatible with Solaris?

I'm connecting to a Solaris machine from WinXP using PuTTY. When I try to use the NumPad keys for editing a command in Bash (Home, End, Delete) a ~ character is instead printed to the console. ...
2
votes
1answer
615 views

How to resume multiple instances of Screen from command line with minimal steps?

I have about 15 instances of screen running on my linux server. They are each running processes I need to monitor. I had to close terminal (hence the reason I launched screen). Is there a way to ...
35
votes
2answers
41k views

How to signal the end of stdin input

In Bash, I learned that the ending signal can be changed by here document. But by default how can I signal the end of stdin input? I happened to find that with cat and chardet, their stdin inputs can ...
13
votes
4answers
1k views

How did they manage to drive a Unix computer before mice and copy & paste?

Since Unix is 40 years old, Unix is older than the invention of the computer mouse. (actually only 3 years if Unix is from 1969 and the mouse from 1972) How in the world did a new user do anything ...
13
votes
2answers
3k views

Kernel Mode Setting vs. Framebuffer?

With KMS, the graphics drivers are moved into the kernel. Since the framebuffer was already in the kernel, I wouldn't expect this to affect framebuffer operation. Yet, I read that KMS supercedes the ...
19
votes
5answers
19k views

view stdout for another pts [duplicate]

Here is the situation. I left my pc at home doing an rsync from a 2TB hard drive to another 2TB hard drive (it's going to take a while since they are both USB 2.0). I am now at work and I have ssh-ed ...
31
votes
6answers
21k views

Removing control chars (including console codes / colours) from script output

I can use the "script" command to record an interactive session at the command line. However, this includes all control characters and colour codes. I can remove control characters (like backspace) ...
4
votes
2answers
1k views

Strange Character in my Bash prompt?

I'm somewhat new to Bash prompts, but I was finally able to get things somewhat working. However, I have a strange character at the beginning of my prompt: Here's my actual PS1 prompt: PS1='\[\e]2;...
46
votes
3answers
21k views

How can I break away from an SSH session that has crashed?

Many times I have an SSH session that doesn't respond anymore (for example, when I lose internet connection and then reconnect). Ctrl+C, Ctrl+D, Ctrl+Z and a zillion of key presses don't have any ...
6
votes
1answer
911 views

Displaying stdout of a background process in specific location of the terminal

I have a command that I run every time a new terminal is opened or a new login is made. This program produces output (colored) which should be positioned before the command prompt. It can take a few ...
2
votes
4answers
1k views

How to prevent a program from dying when its ssh session dies?

I have a really old console application that I want to make a bit more resilient. The program is used this way: the user uses a custom terminal emulator to connect to a remote machine through ssh ...
5
votes
3answers
11k views

Force telnet / ssh to use crtl-H for backspace

I have some devices connected to a Cisco serial term server; many work fine when I telnet directly to the port on the Cisco. However, I have a few stubborn devices that will not use Backspace as it ...
6
votes
3answers
1k views

How to disable styling on man pages?

Is there an easy way to turn off all styling on man pages? Colors, bold, italics, everything... If not, what is an uneasy way?
31
votes
4answers
31k views

Dark blue color in vim or ls output in linux

I have a problem with dark-blue color in vim or ls output. Because I'm using black background color, words colored in dark-blue are almost completely invisible. How can I address this problem?
2
votes
1answer
350 views

Change size of system console as user

At uni, I'm using a terminal to log into a text console of some unix server. As the monitors are 17" and the console is displayed full screen, it's a bit annoying to look at the screen with the ...
3
votes
2answers
323 views

Divorced input line in GNU Screen

Is it possible to divorce my input from the overall shell using Screen? What I'm aiming for is akin to a status line that expands if I type more than would fit within a single line and is 'submitted'/...
4
votes
3answers
2k views

Cursor movement in terminals

I'm trying to wrap my head how shells move the screen cursor around (Moving around input the arrow keys and such). I've been doing a lot of testing, and I haven't found any system call that allows ...
1
vote
1answer
200 views

Different Title formats for different Terminal apps?

I use a script which either activates an already running window of a program, or starts that program if it is not running.  It uses different shortcut-keys; one for each of my most used apps — it ...
7
votes
3answers
6k views

How do I opt out of recieving broadcast messages?

I am logged in to a university system and a very annoying n00b thinks he or she is some awesome hacker because she or he can broadcast an object dump to everyone using pipes. I bet they think it is ...
53
votes
6answers
7k views

Can I configure my shell to print STDERR and STDOUT in different colors?

I want to set my terminal up so stderr is printed in a different color than stdout; maybe red. This would make it easier to tell the two apart. Is there a way to configure this in .bashrc? If not, is ...
4
votes
3answers
326 views

Can I insert sudo via the ^ command?

Sorry if this is a yes/no question.. I am reading this unix tutorial and found the following: Repeating and Modifying the Previous Command [..] If you mistype leavenworth as leaveworth ...
2
votes
2answers
1k views

How can I get weechat to signal gnome-terminal on a highlight?

When using a terminal based client like weechat, weechat does not signal the terminal letting the user know that they have been highlighted. How can this be done? I would like my terminal to blink ...