putty 와 screen 에서 스크롤

doodoo의 이미지

그러니깐 설명하기가 조금 난처한데...

putty로 어느 서버에 들어가서 screen 을 친뒤

사용하다가 만약 ls -l 같은 명령의 결과가 한 화면을 넘쳤을때

휠 마우스를 이용하여 위로 올리면 거기에는 전에 screen을 사용하기 전의

내용만 있어요(리눅스에서는)

하지만 screen을 수동으로 컴파일해서 설치한 alpha OSF1 의 경우에는

휠을 스크롤 해서 보면 바로 지나간 리스트 까지 다 보인다는 .....

뭐가 차이가 있는지 잘 모르겠네요....

이것때문에 매우 불편할 때가 있어서, 혹시 아시는분 답변 부탁합니다.

pool007의 이미지

저도 이거 참 답답하더군요. 방법은 휠을 돌리지 말고, screen상에서 버퍼를
위로 옮겨야합니다.

아래 코드를 ~/.screenrc에 넣으세요.

# 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

설명대로 shift+pgup, shift+pgdn 쓰시면 됩니다.
문제는 screen으로 창을 가로 split 하면 이게 또 잘 안되는거
같더라구요..

--
Passion is like genius; a miracle.

--
Passion is like genius; a miracle.

lusilis의 이미지

putty로 linux와 AIX를 쓰고 있지만 휠 문제 생기는 경우는 없었는데 혹시 설정상의 차이일수도 있으니까 아래글 보고 한번 적용해보세요.. ^^

직접 적은 글이니까 링크라도 문제 될건 없을것 같아 그냥 올립니다..

http://www.parkoz.com/zboard/view.php?id=my_tips&page=1&sn1=&divpage=2&sn=on&ss=off&sc=off&keyword=%C3%D6%BC%BA%BF%F8&select_arrange=headnum&desc=asc&no=6592

superkkt의 이미지

저도 항상 불편했는데 스크린 자체의 페이지 업/다운 기능이 있었군요.

======================
BLOG : http://superkkt.com

======================
BLOG : http://superkkt.com

댓글 달기

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