하나의 콘솔 화면을 2개로 나눌수는 없나요 ?

swunk의 이미지

vi 에디팅 화면은 split 기능으로 2개씩 나누어서 아주(?) 편하게 사용할 수 있습니다.
이처럼 콘솔 화면도 2개로 나누어서 사용할 수 없나요 ?
IPC 류의 프로그램을 테스트 하다보면 마우스로 각각의 콘솔들을 클릭하는게 너무 귀찮네요...^^

ktd2004의 이미지

혹시 screen이 원하시는 기능을 충족시켜줄지도 모르겠네요..
screen에 대한 내용을 검색하시면 많이 나올 것 같습니다.

swunk의 이미지

screen도 하나의 화면을 둘로 나누지는 못하지 않나요 ?
새로 생성해서 콘솔간에 서로 넘겨야 되는 걸로 알고 있는데...
동시에 콘솔화면 2개를 보고 싶은건데...제가 질문한 그런 기능이 없는것으로 알고 있습니다.

뿌직의 이미지

2개 화면 보기 됩니다.
Ctrl + a + S

man 페이지 구경하시면
매우 유용한 정보를 얻으 실수 있으실 겁니다.

참고 : 대문자 S.

--------------------------
`0-
-0`

--------------------------
`0-
-0`

swunk의 이미지

오...그렇군요...아주 유용할 것 같습니다.
man 페이지를 뒤져 봐도 안 나와있는데 혹시 2개로 나눈 화면의 사이즈 조절 그리고 verical split 까지 욕심을 부린다면 욕하실 건가요 ? ^^;

pool007의 이미지

man 에 있어요;;

# screen version 3.09.15 버전 이상
hardstatus alwayslastline
hardstatus string ‘%{= bW}%-Lw%{= BW}%50>%n%f* %t%{= bW}%+Lw%< %{= bG}%-= %{-}'
vbell off
defscrollback 20000
 
# Make shift-PgUp and shift-PgDn work like they do in xterm. (Note that this
# requires xterm to be configured to pass those keys through, and not try to
# act on them itself.)
bindkey "^[[5;2~" eval "copy" "stuff ^u"
bindkey -m "^[[5;2~" stuff ^u
bindkey -m "^[[6;2~" stuff ^d
 
# Walking around region: C+\
bindkey -d "\034" focus down
 
# Resizing region
bind - resize -15
bind + resize +15
bind = resize =
 
# I don't want ^a s
bind s
 
# Kill the current region
bind q remove
 
# Automatically detach on hangup
autodetach on

이걸 ~/.screenrc에 저장하신뒤,
ctrl+a,-
ctrl+a,+
ctrl+a,=
해보시길.

vertical 은 안해봐서 저도 모르겠군요.

--
Passion is like genius; a miracle.

--
Passion is like genius; a miracle.

doodoo의 이미지

그런데...윗 창에서 아랫창으로 이동하는 키는 뭔가요?

못찿겠군요 ㅠㅠ

dormael의 이미지

ctrl+a, S 로 창 두개로 만든후에,
저도 해봤는데 창 이동은 찍어서 ctrl+a, tab 으로 되더군요.
근데, 밑에 창은 왜 쉘 프롬프트가 안뜨는 거죠?

-- Signature --
青い空大好き。
蒼井ソラもっと好き。
파란 하늘 너무 좋아.
아오이 소라 더좋아.

widgie의 이미지

처음에 screen 실행시키고

ctrl+a,S로 창을 분할

그리고 ctrl+a,TAB으로 이동

ctrl+a,c 로 쉘 생성

^.^

man에 이렇게 나오네요

C-a c
C-a C-c     (screen)      Create a new window with a shell and switch to that window

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.