LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: menglianjing

xfce4的终端乱码解决方案!!

[复制链接]
 楼主| 发表于 2004-1-2 10:06:28 | 显示全部楼层

re

搞好了!谢谢各位帅哥们! ;) 修改xfce4文件,我的在本目录,然后把终端换成可以支持中文显示的就行了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-1-2 10:16:56 | 显示全部楼层

回复: re

最初由 menglianjing 发表
搞好了!谢谢各位帅哥们! ;) 修改xfce4文件,我的在本目录,然后把终端换成可以支持中文显示的就行了


其实你根本没有解决问题,而是和我一样,改用了哪一个虚拟终端。
 楼主| 发表于 2004-1-2 10:41:20 | 显示全部楼层

re

那无所谓了,反正可以显示中文就可以了,我要求不高,这个终端不行就换一个呀!
发表于 2004-1-2 10:47:22 | 显示全部楼层
你可以试试安装一个gnuls看看!
我一直使用gnuls,没有看到过乱码!
发表于 2004-1-4 07:01:40 | 显示全部楼层
还有花仙子和兰精灵的mp3 , faint
发表于 2004-1-4 09:53:53 | 显示全部楼层

够懒

你也真够懒的了
发表于 2004-4-8 18:58:32 | 显示全部楼层
是啊!有点难!
发表于 2004-4-26 06:47:49 | 显示全部楼层
最初由 qing 发表
xfterm4

    This is a convenient terminal script. It uses the $TERMCMD environmental variable as terminal command if available and falls back to using xterm. Especially useful in the panel where you can drag file or directories to it that will be viewed by the appropriate console application (less for text files, lynx for html).




[PHP]#!/bin/sh
# Xfterm script revsed in order to make it easier to expand and to be
# more compatible with applications such as gnome-terminal

if [ "x$TERMCMD" = "x" ]; then
        TERMCMD=xterm
fi

if [ "$1" = "-e" ]; then
        if [ -n "$2" ]; then
                ESTRING="$2"
                shift; shift
        else
                shift
        fi
fi       

# Add an entry for your own strange non-standard xterm replacement here
case "$TERMCMD" in
        "powershell")
                EXEC="--execute="
                # The following dosen't seem to work, but it's the best
                # equalient to a title switch powershell has
                TITLE="--name="
                ;;
        "gnome-terminal"|"gnome2-terminal")
                EXEC="-x "
                TITLE="--title "
                ;;
        "Eterm")
                EXEC="-e "
                TITLE="-T "
                ;;
        *)
                EXEC="-e "
                TITLE="-title "
                ;;
esac

if [ ! "x$ESTRING" = "x" ]; then
        TSTRING="$ESTRING"
elif [ "x$1" = "x" ]; then
        TSTRING="Terminal"
        ESTRING=""
        unset EXEC
elif [ -d "$*" ]; then
        cd "$*"
        TSTRING="Terminal"
        ESTRING=""
        unset EXEC
elif [ -x "$*" ]; then
        cd `dirname "$*"`
        TSTRING=`basename "$*"`
        ESTRING="`which pauseme`"
        MSTRING="$*"
elif [ -f "$*" ]; then
        TSTRING="Viewing $*"
        ESTRING="`which less`"
        MSTRING="$*"
elif [ "`echo $* | grep "http:/"`" -o "`echo $* | grep "ftp:"`" ]; then
        # This requires lynx. If you don't have it, don't drop URLs.
        TSTRING="Lynx: $*"
        ESTRING="`which lynx`"
        MSTRING="$*"
else
        exec $TERMCMD $@
fi


# Ugly, why can't they just make all terms work the same way?
# Note that you cannot feed this script with a text file which
# contains spaces in its name and/or path if your $TERMCMD = powershell
if [ "$TERMCMD" = "powershell" ]; then
        exec $TERMCMD $TITLE"$TSTRING" $EXEC"$ESTRING $MSTRING"
elif [ "x$MSTRING" = "x" ]; then
        exec $TERMCMD $TITLE"$TSTRING" $EXEC$ESTRING
else
        exec $TERMCMD $TITLE"$TSTRING" $EXEC$ESTRING "$MSTRING"
fi

exit 0                       
[/PHP]

这是什么东东,强!
发表于 2005-2-21 14:05:44 | 显示全部楼层
Post by trotsky
这是什么东东,强!

这就是xfterm4的源代码,呵,其实它就是一个SHELL,还是要调用xterm的。
回复 支持 反对

使用道具 举报

发表于 2005-2-21 21:06:02 | 显示全部楼层
没办法,我的也是乱码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表