x-win 기동시 실행시킨 xterm에서 한글 입력 관련...

tweedledum의 이미지

x-window(Mwm 사용)를 처음 시작할 때 nabi(한글 입력기)와 xterm 창 두개 그리고 그외 관련 없는 몇 가지 프로그램을 띄우고 있습니다.

x-window를 실행하고 조금 불편한 점은 x-window시작시 실행시킨 xterm에서 한글 입력이 안되는 경우가 있다는 것입니다. x-widow 시작 이후에 제가 실행시키는 xterm에서는 항상 한글이 잘 입력이 됩니다.

짐작으로는 nabi와 xterm이 어떤 것이 먼저 실행 완료되느냐에 따라 x-win 시작시 실행된 xterm에서 한글이 입력이 되느냐 안되느냐가 결정되는 것 같습니다. 아래 첨부한 .xinitrc 파일에서... nabi 프로그램이 항상 먼저 실행되지만 xterm보다 먼저 완료된다는 보장이 없다는 것입니다.

그래서 nabi가 실행 완료된 이후에 xterm이 실행되면 xterm에서 한글이 입력이 되는 것 같고 그 반대로 xterm이 실행완료된 이후에 nabi가 종료되면 한글 입력이 되지 않는 것으로 보여집니다. Mwm에서 입력기를 특별한 프로그램으로 취급하는 것이 아니라 다른 모든 프로그램과 동일하게 취급하여 생기는 문제로 생각됩니다.

새로 창을 띄우고 사용하면 되긴 하지만 그럴 거라면 처음부터 .xinitrc 파일에 xterm을 시작하도록 만들 필요도 없었겠지요.

1. 어떻게 하면 항상 xterm이 시작하기 전에 nabi가 먼저 실행 완료되도록 할 수 있을까요?

2. 여러가지 다른 입력기(IIIMF, UIM?, SCIM)들도 많은 것 같던데 그걸로 교체하면 이런 문제가 없을까요?

3. 입력기가 응용 프로그램과 어떻게 연동하는지도 설명해주시면 감사하겠습니다.

.xinitrc 파일은 다음과 같습니다.

====================================================
#!/bin/sh

export XMODIFIERS="@im=nabi"
export XIM_PROGRAM="/usr/bin/nabi"
export GTK_IM_MODULE=hangul2
export G_BROKEN_FILENAMES=1

if [ -e ~/.Xmodmap ]; then
xrdb $HOME/.Xdefaults
fi

if [ -e ~/.Xdefaults ]; then
xmodmap $HOME/.Xmodmap
fi

if [ -f `which xterm` ]; then
LANG="ko_KR.UTF-8" nabi &
fi

중략

if [ -f `which xterm` ]; then
DISPLAY=":0.0" LANG="ko_KR.UTF-8" \
xterm -bg black -fg white -cr white -ls -geometry 80x25+0+150 &
DISPLAY=":0.0" LANG="ko_KR.UTF-8" \
xterm -bg black -fg white -cr white -ls -geometry 80x25+0+600 &
fi

DISPLAY=":0.0" LANG="ko_KR.UTF-8" exec mwm
====================================================

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.