Monday, December 26, 2005

Config files for mlterm

/etc/mlterm/main

use_combining=true
font_size_range=5-50
scrollbar_view_name=sample
use_scrollbar=true
scrollbar_mode=right
mod_meta_mode=8bit
use_bidi=true
copy_paste_via_ucs=true
compose_dec_special_font=true
termtype=mlterm
icon_path=/usr/share/pixmaps/mlterm-icon-wmaker.png
# logsize=128
fontsize=14
use_anti_alias=true
# tabsize=8
use_xim=true
open_xim_in_startup=true
# use_login_shell=false
# ptys=1
# bel_mode=sound
use_transbg = true
brightness=80
# big5_buggy=false
# not_use_unicode_font=false
# only_use_unicode_font=false
# iso88591_font_for_usascii=false
# col_size_of_width_a=1
fg_color=white
bg_color=black
encoding=UTF-8
# fontsize=16
wall_picture =

/etc/mlterm/aafont

##
## Anti-aliased font settings for non-UTF8 encodings
##

ISO8859_1=Bitstream Vera Sans Mono-iso10646-1;
ISO8859_2=FreeMono-iso10646-1;
ISO8859_3=FreeMono-iso10646-1;
ISO8859_4=FreeMono-iso10646-1;
ISO8859_5=FreeMono-iso10646-1;
ISO8859_7=FreeMono-iso10646-1;
ISO8859_9=FreeMono-iso10646-1;
ISO8859_10=FreeMono-iso10646-1;
ISO8859_13=FreeMono-iso10646-1;
ISO8859_14=FreeMono-iso10646-1;
ISO8859_15=FreeMono-iso10646-1;
KOI8_R=Nimbus Mono L-iso10646-1;
KOI8_U=Nimbus Mono L-iso10646-1;
JISX0208_1978=Kochi Gothic-iso10646-1;
JISX0208_1983=Kochi Gothic-iso10646-1;
JISX0208_1990=Kochi Gothic-iso10646-1;
KSX1001_1997=dotum-iso10646-1;
BIG5=PMingLiu-iso10646-1;
GB2312_80=SimSun-iso10646-1;
GBK=SimSun-iso10646-1;

##
## Anti-aliased font settings for UTF8
##

## settings for UTF8 singlewidth (non-east Asian) characters

# This contains many characters including Latin, Greek, and Cyrillic.
# If you are willing to use UTF-8, you prefer to be able to use many
# characters, don't you?
ISO10646_UCS2_1=FreeMono-iso10646-1;
# If you use UTF-8 but the range of characters is limited to ISO-8859-1,
# you may use the following line instead of the above line.
#ISO10646_UCS2_1=Courier 10 Pitch-iso10646-1;


## settings for UTF8 doublewidth (east Asian) characters
#
# Since there are no TrueType fonts available which contains
# all of east Asian characters so far, you have to choose
# one of the following lines.

# Japanese speakers may want to enable the following setting.
ISO10646_UCS2_1_BIWIDTH=Kochi Gothic-iso10646-1;

# Korean speakers may want to enable the following setting.
#ISO10646_UCS2_1_BIWIDTH=dotum-iso10646-1;

# Traditional Chinese speakers may want to enable the following setting.
#ISO10646_UCS2_1_BIWIDTH=AR PL Mingti2L Big5-iso10646-1;

# Simplified Chinese speakers may want to enable the following setting.
#ISO10646_UCS2_1_BIWIDTH=AR PL SungtiL GB-iso10646-1;

Saturday, December 24, 2005

Things about Bash

Key combinations in Bash

Ctrl+a - Move cursor to the beginning of the command line.
Ctrl+c - End a running program and return the prompt.
Ctrl+d - Log out of the current shell session, equal to typing exit or logout.
Ctrl+e - Move cursor to the end of the command line.
Ctrl+h - Generate backspace character.
Ctrl+l - Clear this terminal.
Ctrl+r - Search command history.
Ctrl+u - Cut everything on the current line before the cursor.
Ctrl+w - Delete the word on the left of the cursor.
Ctrl+y - Paste text that was cut using ctrl-u.
Ctrl+z - Suspend a program.
ArrowLeft and ArrowRight - Move the cursor one place to the left or right on the command line, so that you can insert characters at other places than just at the beginning and the end.
ArrowUp and ArrowDown - Browse history. Go to the line that you want to repeat, eventually edit details, and press Enter to save time.
Shift+PageUp and Shift+PageDown - Browse terminal buffer (to see text that has "scrolled off" the screen).
Tab - Command or filename completion; when multiple choices are possible, the system will either signal with an audio or visual bell, or, if too many choices are possible, ask you if you want to see them all.
Tab Tab - Shows file or command completion possibilities.

About apropos
The command
Code:
# /usr/sbin/makewhatis


makes the database for tools like apropos and whatis from all of your manfiles. Apropos can then tell you programs whose manfiles include your specified word, and whatis prints out the summary of the program you specify.