← man/system_admin
screen — man screen — 80×24
ugur@toprak:~/man/system_admin$man screen
Bölüm 1 Sistem Yönetimi

screen

VT100/ANSI terminal emülasyonuna sahip ekran yöneticisi

Synopsis

        screen [ -options ] [ cmd [ args ] ]
        screen -r [[pid.]tty[.host]]
        screen -r sessionowner/[[pid.]tty[.host]]

Description

Screen, fiziksel bir terminali birkaç işlem (genellikle etkileşimli kabuklar) arasında paylaştıran (multiplexes) tam ekran bir pencere yöneticisidir. Her sanal terminal, bir DEC VT100 terminalinin işlevlerini ve ek olarak ISO 6429 (ECMA 48, ANSI X3.64) ve ISO 2022 standartlarından bazı kontrol işlevlerini (örneğin, satır ekleme/silme ve çoklu karakter seti desteği) sağlar. Her sanal terminal için bir geri kaydırma geçmiş arabelleği (scrollback history buffer) ve pencereler arasında metin bölgelerini taşımaya izin veren bir kopyala-yapıştır mekanizması bulunur.

Screen çağrıldığında, içinde bir kabuk (veya belirtilen komut) bulunan tek bir pencere oluşturur ve ardından programı normalde kullandığınız gibi kullanabilmeniz için aradan çekilir. Ardından, istediğiniz zaman içinde başka programlar bulunan yeni (tam ekran) pencereler oluşturabilir (daha fazla kabuk dahil), mevcut pencereleri kapatabilir, pencerelerin listesini görüntüleyebilir, çıktı günlüğünü açıp kapatabilir, pencereler arasında metin kopyalayıp yapıştırabilir, geri kaydırma geçmişini görüntüleyebilir, pencereler arasında dilediğiniz şekilde geçiş yapabilir vb. Tüm pencereler programlarını birbirinden tamamen bağımsız olarak çalıştırır. Programlar, pencereleri o anda görünür olmadığında ve hatta tüm screen oturumu kullanıcının terminalinden ayrıldığında (detach) bile çalışmaya devam eder. Bir program sonlandığında, screen (varsayılan olarak) onu içeren pencereyi kapatır. Bu pencere ön plandaysa, ekran bir önceki pencereye geçer; hiç pencere kalmadıysa screen çıkış yapar.

Yazdığınız her şey geçerli pencerede çalışan programa gönderilir. Bunun tek istisnası, pencere yöneticisine bir komut başlatmak için kullanılan tek bir tuş vuruşudur. Varsayılan olarak, her komut bir control-a (bundan sonra C-a olarak kısaltılacaktır) ile başlar ve bunu bir başka tuş vuruşu takip eder. Komut karakteri ve tüm tuş atamaları, her zaman iki karakter uzunluğunda olsalar da, tamamen dilediğiniz gibi özelleştirilebilir.

Screen, control anlamına gelen "C-" önekini anlamaz. Lütfen örneğin escape komutuna veya -e seçeneğine argüman olarak şapka gösterimini ("C-a" yerine "^A") kullanın. Screen ayrıca kontrol karakterlerini şapka gösterimiyle yazdıracaktır.

Yeni bir pencere oluşturmanın standart yolu "C-a c" yazmaktır. Bu, kabuk çalıştıran yeni bir pencere oluşturur ve geçerli pencerede çalışan işlemin durumuna bakılmaksızın hemen o pencereye geçer. Benzer şekilde, önce komutu bir tuş vuruşuna bağlayarak (.screenrc dosyanızda veya "C-a :" komut satırında) ve ardından bunu tıpkı "C-a c" komutu gibi kullanarak özel bir komut içeren yeni bir pencere oluşturabilirsiniz. Ek olarak, daha önce oluşturulmuş bir pencerenin içindeki bir kabuk isteminden şuna benzer bir komut çalıştırılarak da yeni pencereler oluşturulabilir:

screen emacs prog.c

Bu, başka bir screen kopyası çalıştırmayacak, bunun yerine komut adını ve argümanlarını ($STY ortam değişkeninde belirtilen) pencere yöneticisine sunacak ve pencere yöneticisi bunu yeni pencereyi oluşturmak için kullanacaktır. Yukarıdaki örnek emacs düzenleyicisini başlatır (prog.c dosyasını düzenleyerek) ve onun penceresine geçer.

Eğer "/etc/utmp" dosyası screen tarafından yazılabilir durumdaysa, her pencere için bu dosyaya uygun bir kayıt yazılır ve pencere sonlandırıldığında kaldırılır. Bu, kim olduğunuzu belirlemek için utmp dosyasını kullanan "talk", "script", "shutdown", "rsend", "sccs" ve benzeri diğer programlarla çalışırken kullanışlıdır. Terminalinizde screen aktif olduğu sürece, terminalin kendi kaydı utmp dosyasından kaldırılır. Ayrıca bkz. "C-a L".

Getting Started

Screen kullanmaya başlamadan önce, diğer termcap/terminfo programlarında olduğu gibi terminal tipinizi doğru seçtiğinizden emin olmanız gerekir. (Bunu yapmak için örneğin tset kullanabilirsiniz.)

Aceleciyseniz ve çok fazla okumadan başlamak istiyorsanız, şu tek komutu unutmamalısınız: "C-a ?". Bu iki karakteri yazmak, mevcut screen komutlarının ve bunların tuş atamalarının bir listesini görüntüleyecektir. Each key press is discussed in the section "DEFAULT KEY BINDINGS". The manual section "CUSTOMIZATION" deals with the contents of your .screenrc.

Terminaliniz "gerçek" bir otomatik kenar boşluğu (auto-margin) terminaliyse (ekranı kaydırmadan ekranın son konumunun güncellenmesine izin vermiyorsa), terminalinizin otomatik kenar boşlukları kapatılmış bir termcap sürümünü kullanmayı düşünün. Bu, ekranın her koşulda doğru ve en uygun şekilde güncellenmesini sağlayacaktır. Günümüzde çoğu terminal "sihirli" kenar boşluklarına sahiptir (otomatik kenar boşlukları artı kullanılabilir son sütun). Bu, VT100 tarzı tiptir ve screen için mükemmel şekilde uygundur. Elinizde yalnızca "gerçek" bir otomatik kenar boşluğu terminali varsa screen bunu kullanmaktan memnun olacaktır, ancak ekran kayana kadar veya karakter başka bir şekilde güvenli bir konuma taşınana kadar ekranın son konumuna yerleştirilen bir karakterin güncellenmesi mümkün olmayabilir. Bu gecikme, karakter ekleme (insert-character) özelliğine sahip bir terminal kullanılarak kısaltılabilir.

Command-Line Options

Screen aşağıdaki komut satırı seçeneklerine sahiptir:

  • -a: Screen'in bir işlevi uygulamak için ekranın bazı kısımlarını yeniden çizmesi gerekse bile, her pencerenin termcap'ine tüm yetenekleri (bazı küçük istisnalar hariç) dahil eder.

  • -A: Tüm pencerelerin boyutlarını mevcut terminalin boyutuna uyarlar. Varsayılan olarak screen, yeniden boyutlandırılabilir terminallere (açıklamasında "WS" bulunanlar, örneğin suncmd veya bazı xterm'ler) bağlanırken eski pencere boyutlarını geri yüklemeye çalışır.

-c file Varsayılan yapılandırma dosyasını "$HOME/.screenrc" yerine file olarak değiştirir.

-d|-D [pid.tty.host] Screen'i başlatmaz, bunun yerine başka bir yerde çalışan screen oturumunu ayırır (detach). Bu, screen'in kontrol terminalinden "C-a d" yazmakla aynı etkiye sahiptir. -D güçlü ayırma (power detach) tuşuna eşdeğerdir. Ayrılacak bir oturum bulunamazsa bu seçenek yoksayılır. -r/-R seçeneğiyle birlikte kullanıldığında daha güçlü etkiler elde edilebilir:

  • -d -r: Bir oturuma yeniden bağlanır ve gerekirse önce onu ayırır.

  • -d -R: Bir oturuma yeniden bağlanır ve gerekirse önce onu ayırır veya hatta önce onu oluşturur.

  • -d -RR: Bir oturuma yeniden bağlanır ve gerekirse onu ayırır veya oluşturur. Birden fazla oturum mevcutsa ilk oturumu kullanır.

  • -D -r: Bir oturuma yeniden bağlanır. Gerekirse önce uzaktan ayırır ve oturumu kapatır.

  • -D -R: Burada ve şimdi bağlanır. Ayrıntılı olarak bu şu anlama gelir: Bir oturum çalışıyorsa, yeniden bağlanır. Gerekirse önce uzaktan ayırır ve oturumu kapatır. Çalışmıyorsa oluşturur ve kullanıcıyı bilgilendirir. Bu, yazarın en sevdiği seçenektir.

  • -D -RR: Burada ve şimdi bağlanır. Bu ne anlama geliyorsa, sadece yap.

Not: Oturumunuzun durumunu her zaman "screen -list" aracılığıyla kontrol etmek iyi bir fikirdir.

-e xy Komut karakterini x ve gerçek bir komut karakteri üreten karakteri y olarak belirtir (komut karakterinden sonra yazıldığında). Varsayılan değer "C-a" ve `a'dır, bu "-e^Aa" olarak belirtilebilir. Bir screen oturumu oluştururken, bu seçenek varsayılan komut karakterini ayarlar. Çok kullanıcılı bir oturumda, eklenen tüm kullanıcılar bu komut karakteriyle başlar. Ancak zaten çalışan bir oturuma bağlanırken, bu seçenek yalnızca bağlanan kullanıcının komut karakterini değiştirir. Bu seçenek sırasıyla "defescape" veya "escape" komutlarına eşdeğerdir.

-f, -fn, and -fa Akış kontrolünü açar, kapatır veya "otomatik geçiş moduna" alır. Bu, .screenrc içindeki "defflow" komutuyla da tanımlanabilir.

-h num Geçmiş geri kaydırma arabelleğinin (history scrollback buffer) num satır yüksekliğinde olacağını belirtir.

  • -i: Akış kontrolü açık olduğunda kesme (interrupt) tuşunun (genellikle C-c) ekranı hemen kesmesine neden olur. Ayrıntılar için "defflow" .screenrc komutuna bakın. Bu seçeneğin kullanılması önerilmez.

-l and -ln Oturum açma modunu açar veya kapatır (/etc/utmp güncellemesi için). Bu, .screenrc içindeki "deflogin" komutuyla da tanımlanabilir.

-ls and -list Screen'i başlatmaz, ancak screen oturumlarınızı tanımlayan pid.tty.host dizgilerinin bir listesini yazdırır. detached (ayrılmış) olarak işaretlenen oturumlar "screen -r" ile sürdürülebilir. attached (bağlı) olarak işaretlenenler çalışmaktadır ve bir kontrol terminaline sahiptir. Oturum çok kullanıcılı modda çalışıyorsa multi olarak işaretlenir. unreachable (erişilemez) olarak işaretlenen oturumlar ya farklı bir ana bilgisayarda barındırılmaktadır ya da dead (ölü) durumdadır. Erişilemez bir oturum, adı yerel ana bilgisayarın adıyla veya varsa belirtilen parametreyle eşleştiğinde ölü kabul edilir. Eşleşmelerin nasıl kurulacağına dair açıklama için -r bayrağına bakın. dead olarak işaretlenen oturumlar iyice kontrol edilmeli ve kaldırılmalıdır. Emin değilseniz sistem yöneticinize danışın. Oturumları -wipe seçeneğiyle kaldırın.

  • -L: Screen'e pencereler için otomatik çıktı günlüğünü açmasını söyler.

  • -m: Screen'in $STY ortam değişkenini yoksaymasına neden olur. "screen -m" ile, screen'in başka bir screen oturumunun içinden çağrılıp çağrılmadığına bakılmaksızın yeni bir oturum oluşturulması zorunlu kılınır. Bu bayrağın `-d' seçeneğiyle birlikte özel bir anlamı vardır:

  • -d -m: Screen'i "detached" (ayrılmış) modda başlatır. Bu, yeni bir oturum oluşturur ancak ona bağlanmaz. Sistem başlangıç betikleri için kullanışlıdır.

  • -D -m: Bu da screen'i "detached" modda başlatır, ancak yeni bir işlem çatallamaz. Oturum sonlandığında komut çıkış yapar.

  • -O: Gerçek VT100 emülasyonu yerine terminaliniz için daha uygun bir çıktı modu seçer (yalnızca LP içermeyen otomatik kenar boşluklu terminalleri etkiler). Bu, .screenrc dosyanızda bir "termcap" komutunda OP belirtilerek de ayarlanabilir.

-p number_or_name Bir pencereyi önceden seçer. Bu, belirli bir pencereye yeniden bağlanmak istediğinizde veya "-X" seçeneği aracılığıyla belirli bir pencereye komut göndermek istediğinizde kullanışlıdır. Screen'in select komutunda olduğu gibi, "-" boş pencereyi seçer. Yeniden bağlanma için özel bir durum olarak, "=" boş pencerede pencere listesini getirir.

  • -q: Hata mesajlarının yazdırılmasını engeller. "-ls" ile birlikte kullanıldığında çıkış değeri aşağıdaki gibidir: 9, oturum içermeyen bir dizini gösterir. 10, çalışan ancak bağlanılamayan oturumları olan bir dizini gösterir. 11 (veya daha fazlası), 1 (veya daha fazla) kullanılabilir oturumu gösterir. "-r" ile birlikte kullanıldığında çıkış değeri aşağıdaki gibidir: 10, sürdürülecek oturum olmadığını gösterir. 12 (veya daha fazlası), sürdürülecek 2 (veya daha fazla) oturum olduğunu gösterir ve hangisini seçeceğinizi belirtmeniz gerekir. Diğer tüm durumlarda "-q" seçeneğinin hiçbir etkisi yoktur.

-r [pid.tty.host] -r sessionowner/[pid.tty.host] Ayrılmış bir screen oturumunu sürdürür. Başka hiçbir seçenek belirtilemez (-d/-D ile kombinasyonlar hariç), ancak birden fazla ayrılmış screen oturumu arasında ayrım yapmak için [pid.]tty.host şeklinde isteğe bağlı bir önek gerekebilir. İkinci biçim, başka bir kullanıcının çok kullanıcılı modda çalışan screen oturumuna bağlanmak için kullanılır. Bu, screen'in başka bir kullanıcının dizinindeki oturumları araması gerektiğini gösterir. Bu işlem setuid-root gerektirir.

  • -R: Bulduğu ilk ayrılmış screen oturumunu sürdürmeye çalışır. Başarılı olursa, diğer tüm komut satırı seçenekleri yoksayılır. Ayrılmış bir oturum yoksa, belirtilen seçenekleri kullanarak tıpkı -R belirtilmemiş gibi yeni bir oturum başlatır. Screen bir oturum açma kabuğu (login-shell) olarak çalıştırılırsa bu seçenek varsayılan olarak ayarlanır (aslında screen bu durumda "-xRR" kullanır). -d/-D seçeneğiyle kombinasyonlar için oraya bakın.

  • -s: Varsayılan kabuğu, $SHELL ortam değişkenindeki değer (veya tanımlanmamışsa "/bin/sh") yerine belirtilen programa ayarlar. Bu, .screenrc içindeki "shell" komutuyla da tanımlanabilir.

-S sessionname Yeni bir oturum oluştururken, bu seçenek oturum için anlamlı bir ad belirtmek üzere kullanılabilir. Bu ad, "screen -list" ve "screen -r" eylemleri için oturumu tanımlar. Varsayılan [tty.host] son ekinin yerini alır.

-t name Varsayılan kabuk veya belirtilen program için başlığı (title) ayarlar. Ayrıca "shelltitle" .screenrc komutuna bakın.

  • -U: Screen'i UTF-8 modunda çalıştırır. Bu seçenek screen'e terminalinizin UTF-8 kodlu karakterler gönderdiğini ve anladığını bildirir. Ayrıca yeni pencereler için varsayılan kodlamayı utf8 olarak ayarlar.

  • -v: Sürüm numarasını yazdırır.

-wipe [match] "screen -ls" ile aynı işlemi yapar, ancak yok edilmiş oturumları dead olarak işaretlemek yerine kaldırır. Erişilemez bir oturum, adı yerel ana bilgisayarın adıyla veya varsa açıkça verilen parametreyle eşleştiğinde ölü kabul edilir. Eşleşmelerin nasıl kurulacağına dair açıklama için -r bayrağına bakın.

  • -x: Ayrılmamış bir screen oturumuna bağlanır. (Çoklu ekran modu).

  • -X: Belirtilen komutu çalışan bir screen oturumuna gönderir. Screen'e yalnızca bağlı veya ayrılmış screen oturumlarını aramasını söylemek için -d veya -r seçeneğini kullanabilirsiniz. Oturum şifre korumalıysa bu komutun çalışmayacağını unutmayın.

Default Key Bindings

Belirtildiği gibi, her screen komutu bir "C-a" ve ardından gelen başka bir karakterden oluşur. Kolaylık sağlamak için, küçük harflere atanmış tüm komutlar kontrol karakteri karşılıklarına da atanmıştır ("C-a a" hariç; aşağıya bakın), böylece bir pencere oluşturmak için hem "C-a c" hem de "C-a C-c" kullanılabilir. Komutun açıklaması için "CUSTOMIZATION" bölümüne bakın.

Aşağıdaki tablo varsayılan tuş atamalarını göstermektedir:

C-a ' (select) Geçiş yapılacak bir pencere adı veya numarası ister.

C-a " (windowlist -b) Seçim için tüm pencerelerin bir listesini sunar.

C-a 0 (select 0) ... ... C-a 9 (select 9) C-a - (select -) 0 - 9 numaralı pencereye veya boş pencereye geçiş yapar.

C-a tab (focus) Girdi odağını bir sonraki bölgeye geçirir.

C-a C-a (other) Daha önce görüntülenen pencereye geçiş yapar. Geçersiz kılınmadığı sürece bu atamanın varsayılan olarak iki kez yazılan komut karakteri olduğunu unutmayın. Örneğin, "-e]x" seçeneğini kullanırsanız bu komut "]]" haline gelir.

C-a a (meta) Komut karakterini (C-a) pencereye gönderir. Bkz. escape komutu.

C-a A (title) Kullanıcının mevcut pencere için bir ad girmesine izin verir.

C-a b C-a C-b (break) Pencereye bir break sinyali gönderir.

C-a B (pow_break) Terminal satırını yeniden açar ve bir break sinyali gönderir.

C-a c C-a C-c (screen) Kabuk ile yeni bir pencere oluşturur ve o pencereye geçer.

C-a C (clear) Ekranı temizler.

C-a d C-a C-d (detach) Screen'i bu terminalden ayırır.

C-a D D (pow_detach) Ayırır ve oturumu kapatır.

C-a f C-a C-f (flow) Akış kontrolünü açık, kapalı veya otomatik olarak değiştirir.

C-a F (fit) Pencereyi mevcut bölge boyutuna göre yeniden boyutlandırır.

C-a C-g (vbell) Screen'in görsel zil (visual bell) modunu değiştirir.

C-a h (hardcopy) Mevcut pencerenin bir ekran görüntüsünü (hardcopy) "hardcopy.n" dosyasına yazar.

C-a H (log) Mevcut pencerenin "screenlog.n" dosyasına kaydedilmesini başlatır/durdurur.

C-a i C-a C-i (info) Bu pencere hakkında bilgi gösterir.

C-a k C-a C-k (kill) Mevcut pencereyi kapatır.

C-a l C-a C-l (redisplay) Mevcut pencereyi tamamen yeniler.

C-a L (login) Bu pencerenin oturum açma yuvasını (login slot) değiştirir. Yalnızca screen utmp veritabanını güncelleyecek şekilde yapılandırılmışsa kullanılabilir.

C-a m C-a C-m (lastmsg) Mesaj satırında görüntülenen son mesajı tekrarlar.

C-a M (monitor) Mevcut pencerenin izlenmesini açar/kapatır.

C-a space C-a n C-a C-n (next) Bir sonraki pencereye geçer.

C-a N (number) Mevcut pencerenin numarasını (ve başlığını) gösterir.

C-a backspace C-a h C-a p C-a C-p (prev) Bir önceki pencereye geçer (C-a n komutunun tersi).

C-a q C-a C-q (xon) Mevcut pencereye bir control-q gönderir.

C-a Q (only) Geçerli olan dışındaki tüm bölgeleri siler.

C-a r C-a C-r (wrap) Geçerli pencerenin satır sarma (line-wrap) ayarını değiştirir (geçerli pencerenin otomatik kenar boşluklarını açar ve kapatır).

C-a s C-a C-s (xoff) Mevcut pencereye bir control-s gönderir.

C-a S (split) Mevcut bölgeyi iki yeni bölgeye ayırır.

C-a t C-a C-t (time) Sistem bilgilerini gösterir.

C-a v (version) Sürümü ve derleme tarihini görüntüler.

C-a C-v (digraph) Digraph moduna girer.

C-a w C-a C-w (windows) Pencerelerin bir listesini gösterir.

C-a W (width) 80/132 sütun arasında geçiş yapar.

C-a x C-a C-x (lockscreen) Bu terminali kilitler.

C-a X (remove) Mevcut bölgeyi kapatır.

C-a z C-a C-z (suspend) Screen'i askıya alır (suspend). Sisteminiz BSD tarzı iş kontrolünü (job-control) desteklemelidir.

C-a Z (reset) Sanal terminali "ilk açılış" (power-on) değerlerine sıfırlar.

C-a . (dumptermcap) Bir ".termcap" dosyası yazar.

C-a ? (help) Tuş atamalarını gösterir.

C-a C-\ (quit) Tüm pencereleri kapatır ve screen'i sonlandırır.

C-a : (colon) Komut satırı moduna girer.

C-a [ C-a C-[ C-a esc (copy) Kopyalama/geri kaydırma moduna girer.

C-a ] (paste .) Yapıştırma arabelleğinin içeriğini geçerli pencerenin stdin kuyruğuna yazar.

C-a { C-a } (history) Önceki bir (komut) satırını kopyalar ve yapıştırır.

C-a > (writebuf) Yapıştırma arabelleğini bir dosyaya yazar.

C-a < (readbuf) Ekran değişim dosyasını yapıştırma arabelleğine okur.

C-a = (removebuf) C-a < ve C-a > tarafından kullanılan dosyayı kaldırır.

C-a , (license) Screen'in nereden geldiğini, nereye gittiğini ve neden kullanabileceğinizi gösterir.

C-a _ (silence) Geçerli pencereyi hareketsizlik için izlemeyi başlatır/durdurur.

C-a * (displays) Şu anda bağlı olan tüm ekranların bir listesini gösterir.

Customization

"Soket dizini" (socket directory) varsayılan olarak $HOME/.screen veya derleme zamanında seçilen /tmp/screens ya da tercihen /usr/local/screens dizinidir. Screen setuid-root olarak kurulmuşsa, yönetici screen'i uygun (NFS ile bağlanmamış) bir soket diziniyle derlemelidir. Screen setuid-root olarak çalışmıyorsa, kullanıcı $SCREENDIR ortam değişkeninde izin modu 700 olan herhangi bir dizini belirtebilir.

Screen çağrıldığında, kullanıcının ev dizinindeki "/usr/local/etc/screenrc" ve ".screenrc" dosyalarından başlatma komutlarını yürütür. Bunlar, aşağıdaki yollarla geçersiz kılınabilen "programcı varsayılanlarıdır": genel screenrc dosyası için screen, $SYSSCREENRC ortam değişkenini arar (bu geçersiz kılma özelliği derleme zamanında devre dışı bırakılmış olabilir). Kullanıcıya özel screenrc dosyası sırasıyla $SCREENRC ve ardından $HOME/.screenrc içinde aranır. Komut satırı seçeneği -c, yukarıdaki kullanıcı screenrc dosyalarından önceliklidir.

Bu dosyalardaki komutlar; seçenekleri ayarlamak, işlevleri tuşlara bağlamak ve screen oturumunuzun başlangıcında otomatik olarak bir veya daha fazla pencere oluşturmak için kullanılır. Komutlar her satıra bir tane gelecek şekilde listelenir ve boş satırlar yoksayılır. Bir komutun argümanları sekmeler veya boşluklarla ayrılır ve tek veya çift tırnak içine alınabilir. Bir # karakteri, tırnak içinde olmadığı sürece satırın geri kalanını yoruma dönüştürür. Anlaşılmayan satırlar hakkında uyarı verilir ve bu satırlar yoksayılır. Komutlar ortam değişkenlerine referanslar içerebilir. Sözdizimi kabuk benzeri "$VAR" veya "${VAR}" şeklindedir. Değişken ikamesi gerçekleştirilmeyecekse artık '$' karakterinin '' ile korunması gerektiğinden, bunun önceki screen sürümleriyle uyumsuzluğa neden olduğunu unutmayın. Tek tırnak içindeki bir dizge de değişken ikamesinden korunur.

Screen dağıtımınızla birlikte örnek olarak iki yapılandırma dosyası sunulur: "etc/screenrc" ve "etc/etcscreenrc". Çeşitli komutlar için bir dizi yararlı örnek içerirler.

Özelleştirme 'çevrimiçi' (on-line) olarak da yapılabilir. Komut moduna girmek için 'C-a :' yazın. "def" ile başlayan komutların varsayılan değerleri değiştirdiğini, diğerlerinin ise mevcut ayarları değiştirdiğini unutmayın.

Aşağıdaki komutlar mevcuttur:

acladd usernames [crypted-pw] addacl usernames

Kullanıcıların bu screen oturumuna tam erişim sağlamasını etkinleştirir. Kullanıcı adları tek bir kullanıcı veya virgülle ayrılmış bir kullanıcı listesi olabilir. Bu komut, screen oturumuna bağlanmayı sağlar ve yürütülen aclchg usernames +rwx "#?" komutunun eşdeğerini gerçekleştirir. Kısıtlı erişime sahip bir kullanıcı eklemek için aşağıdaki aclchg komutunu kullanın. İsteğe bağlı bir ikinci parametre sağlanırsa, bu, belirtilen kullanıcı(lar) için şifrelenmiş bir şifre olmalıdır. Addacl, acladd komutunun eşanlamlısıdır. Yalnızca çok kullanıcılı modda geçerlidir.

aclchg usernames permbits list chacl usernames permbits list

Virgülle ayrılmış bir kullanıcı listesi için izinleri değiştirir. İzin bitleri r, w ve x olarak temsil edilir. Öne getirilen + izni verir, - ise kaldırır. Üçüncü parametre, komutların ve/veya pencerelerin (numara veya başlık ile belirtilen) virgülle ayrılmış bir listesidir. Özel # listesi tüm pencereleri, ? ise tüm komutları ifade eder. usernames tek bir * karakterinden oluşuyorsa, bilinen tüm kullanıcılar etkilenir. Bir komut, kullanıcı onun için x bitine sahip olduğunda çalıştırılabilir. Kullanıcı, bir pencerenin w biti ayarlandığında ve başka hiçbir kullanıcı bu pencere için bir yazma kilidi (writelock) elde etmediğinde pencereye girdi yazabilir. Diğer bitler şu anda yoksayılır. 2 numaralı penceredeki başka bir kullanıcıdan yazma kilidini geri almak için: aclchg username -w+w 2. Oturuma salt okunur erişime izin vermek için: aclchg username -w "#". Bir kullanıcının adı screen tarafından öğrenilir öğrenilmez oturuma bağlanabilir ve (varsayılan olarak) tüm komutlar ve pencereler için tam izinlere sahip olur. Acl komutları, at ve diğerleri için çalıştırma izni de kaldırılmalıdır, aksi takdirde kullanıcı yazma iznini yeniden kazanabilir. Özel kullanıcı adı nobody'nin hakları değiştirilemez (bkz. "su" komutu). Chacl, aclchg komutunun eşanlamlısıdır. Yalnızca çok kullanıcılı modda geçerlidir.

acldel username

Bir kullanıcıyı screen'in erişim kontrol listesinden kaldırır. Eğer şu anda bağlıysa, kullanıcının tüm ekranları oturumdan ayrılır. Tekrar bağlanamaz. Yalnızca çok kullanıcılı modda geçerlidir.

aclgrp username [groupname]

Ortak erişim haklarını paylaşan kullanıcı grupları oluşturur. Grubun adı, grup liderinin kullanıcı adıdır. Grubun her üyesi, grup liderine verilen izinleri miras alır. Yani, bir kullanıcı erişim denetiminden geçemezse, grup lideri için başka bir denetim yapılır. groupname için özel "none" değeri kullanıldığında bir kullanıcı tüm gruplardan çıkarılır. İkinci parametre atlanırsa, kullanıcının dahil olduğu tüm gruplar listelenir.

aclumask [[users]+bits |[users]-bits .... ] umask [[users]+bits |[users]-bits .... ]

Bu, diğer kullanıcıların, komutu çağıran kişi tarafından oluşturulacak pencerelere olan erişimini belirtir. Kullanıcılar hiç kimse, tek bir kullanıcı veya bilinen kullanıcı adlarının virgülle ayrılmış bir listesi olabilir. Hiçbir kullanıcı belirtilmemişse, o anda bilinen tüm kullanıcıların listesi varsayılır. Bits, "aclchg" komutuyla tanımlanmasına izin verilen erişim kontrol bitlerinin herhangi bir kombinasyonudur. Özel kullanıcı adı "?", henüz bilinmeyen kullanıcıların başlangıçta herhangi bir pencereye erişim haklarını önceden tanımlar. Özel kullanıcı adı "??", henüz bilinmeyen kullanıcıların herhangi bir komuta erişim haklarını önceden tanımlar. Özel kullanıcı adı nobody'nin hakları değiştirilemez (bkz. "su" komutu). Umask, aclumask komutunun eşanlamlısıdır.

activity message

İzlenmekte olan bir arka plan penceresinde herhangi bir hareketlilik meydana geldiğinde, screen mesaj satırında bir bildirim görüntüler. Bildirim mesajı "activity" komutu aracılığıyla yeniden tanımlanabilir. message içindeki her % karakteri hareketliliğin meydana geldiği pencerenin numarasıyla değiştirilir ve her ^G karakteri termcap'inizdeki zil tanımıyla (genellikle duyulabilir bir zil) değiştirilir. Varsayılan mesaj şudur:

'Activity in window %n'

İzlemenin varsayılan olarak tüm pencereler için kapalı olduğunu, ancak "monitor" komutu (C-a M) kullanılarak değiştirilebileceğini unutmayın.

allpartial on|off

on olarak ayarlanırsa, pencere geçişinde yalnızca geçerli imleç satırı yenilenir. Bu tüm pencereleri etkiler ve yavaş terminal hatları için kullanışlıdır. Her pencere için önceki tam/kısmi yenileme ayarı "allpartial off" ile geri yüklenir. Bu, "partial" ayarlarını geçersiz kılarak tüm pencerelerde hemen yürürlüğe giren küresel bir bayraktır. Yeni oluşturulan pencerelerin varsayılan yeniden çizim davranışını değiştirmez.

altscreen on|off

on olarak ayarlanırsa, sanal terminallerde tıpkı xterm'de olduğu gibi "alternatif ekran" (alternate screen) desteği etkinleştirilir. Başlangıç ayarı off'tur.

at [identifier][#|*|%] command [args ... ]

Başka ekranlarda veya pencerelerde, sanki orada girilmiş gibi bir komut çalıştırır. "At", komutun bağlamını (current window veya current display ayarı) değiştirir. İlk parametre benzersiz olmayan bir bağlamı tanımlıyorsa, komut birden çok kez yürütülecektir. İlk parametre identifier* biçimindeyse, identifier kullanıcı adlarıyla karşılaştırılır. Komut, seçilen kullanıcı(lar)ın her ekranı için bir kez yürütülür. İlk parametre identifier% biçimindeyse, identifier ekranlarla karşılaştırılır. Ekranlar, bağlandıkları tty'lere göre adlandırılır. /dev/ veya /dev/tty öneki tanımlayıcıdan atlanabilir. identifier sonuna bir # eklenmişse veya hiçbir şey eklenmemişse, pencere numaraları ve başlıkları ile karşılaştırılır. #, * veya % karakterinin önündeki tanımlayıcının atlanması, bir önek eşleşmesi gerçekleştirildiğinden tüm kullanıcıları, ekranları veya pencereleri seçer. Etkilenen ekran(lar)da ne olduğunu açıklayan kısa bir mesajın görüntüleneceğini unutmayın. İzin kontrolü, etkilenen ekran(lar)ın sahipleri için değil, "at" komutunu başlatan kişi için yapılır. Önünde boşluk bulunduğunda '#' karakterinin yorum başlatıcı olarak çalıştığını unutmayın. Bu, önüne bir '' getirilerek kaçış karakteriyle önlenebilir. İzin denetimi, etkilenen ekran(lar)ın sahipleri için değil, "at" komutunu başlatan kişi için yapılır. Uyarı: Pencerelerle eşleştiğinde, komut pencere başına en az bir kez yürütülür. Pencerelerin dahili düzenini değiştiren komutlar (örneğin "other") tekrar çağrılabilir. Paylaşılan pencerelerde komut, bağlı her ekran için tekrarlanacaktır. "login" gibi durum değiştiren (toggle) komutlar verirken dikkatli olun! Bazı komutlar (örneğin "process"), hedef pencerelerle bir ekranın ilişkilendirilmesini gerektirir. Bu komutlar, pencereler üzerinde dönen "at" altında düzgün çalışmayabilir.

attrcolor attrib [attribute/color-modifier]

Bu komut, metnin rengini değiştirerek öznitelikleri vurgulamak için kullanılabilir. attrib özniteliği kullanımdaysa, belirtilen öznitelik/renk değiştirici de uygulanır. Herhangi bir değiştirici verilmezse geçerli olan silinir. Değiştiricinin sözdizimi için "STRING ESCAPES" bölümüne bakın. Screen iki sahte özniteliği anlar: "i" yüksek yoğunluklu ön plan rengini, "I" ise yüksek yoğunluklu arka plan rengini temsil eder.

Examples:

attrcolor b "R"

Change the color to bright red if bold text is to be printed.

attrcolor u "-u b"

Use blue text instead of underline.

attrcolor b ".I"

Use bright colors for bold text. Most terminal emulators do this already.

attrcolor i "+b"

Make bright colored text also bold.

autodetach on|off

Sets whether screen will automatically detach upon hangup, which saves all your running programs until they are resumed with a screen -r command. When turned off, a hangup signal will terminate screen and all the processes it contains. Autodetach is on by default.

autonuke on|off

Sets whether a clear screen sequence should nuke all the output that has not been written to the terminal. See also "obuflimit".

backtick id lifespan autorefresh cmd args... backtick id

Program the backtick command with the numerical id id. The output of such a command is used for substitution of the "%`" string escape. The specified lifespan is the number of seconds the output is considered valid. After this time, the command is run again if a corresponding string escape is encountered. The autorefresh parameter triggers an automatic refresh for caption and hardstatus strings after the specified number of seconds. Only the last line of output is used for substitution. If both the lifespan and the autorefresh parameters are zero, the backtick program is expected to stay in the background and generate output once in a while. In this case, the command is executed right away and screen stores the last line of output. If a new line gets printed screen will automatically refresh the hardstatus or the captions. The second form of the command deletes the backtick command with the numerical id id.

bce [on|off]

Change background-color-erase setting. If "bce" is set to on, all characters cleared by an erase/insert/scroll/clear operation will be displayed in the current background color. Otherwise the default background color is used.

bell_msg [message]

When a bell character is sent to a background window, screen displays a notification in the message line. The notification message can be re-defined by this command. Each occurrence of %' in message is replaced by the number of the window to which a bell has been sent, and each occurrence of ^G' is replaced by the definition for bell in your termcap (usually an audible bell). The default message is

'Bell in window %n'

An empty message can be supplied to the "bell_msg" command to suppress output of a message line (bell_msg ""). Without parameter, the current message is shown.

bind [-c class] key [command [args]]

Bind a command to a key. By default, most of the commands provided by screen are bound to one or more keys as indicated in the "DEFAULT KEY BINDINGS" section, e.g. the command to create a new window is bound to "C-c" and "c". The "bind" command can be used to redefine the key bindings and to define new bindings. The key argument is either a single character, a two-character sequence of the form "^x" (meaning "C-x"), a backslash followed by an octal number (specifying the ASCII code of the character), or a backslash followed by a second character, such as "^" or "\". The argument can also be quoted, if you like. If no further argument is given, any previously established binding for this key is removed. The command argument can be any command listed in this section.

If a command class is specified via the "-c" option, the key is bound for the specified class. Use the "command" command to activate a class. Command classes can be used to create multiple command keys or multi-character bindings.

Some examples:

bind ' ' windows bind ^k bind k bind K kill bind ^f screen telnet foobar bind \033 screen -ln -t root -h 1000 9 su

would bind the space key to the command that displays a list of windows (so that the command usually invoked by "C-a C-w" would also be available as "C-a space"). The next three lines remove the default kill binding from "C-a C-k" and "C-a k". "C-a K" is then bound to the kill command. Then it binds "C-f" to the command "create a window with a TELNET connection to foobar", and bind "escape" to the command that creates an non-login window with a.k.a. "root" in slot #9, with a superuser shell and a scrollback buffer of 1000 lines.

bind -c demo1 0 select 10 bind -c demo1 1 select 11 bind -c demo1 2 select 12 bindkey "^B" command -c demo1

makes "C-b 0" select window 10, "C-b 1" window 11, etc.

bind -c demo2 0 select 10 bind -c demo2 1 select 11 bind -c demo2 2 select 12 bind - command -c demo2

makes "C-a - 0" select window 10, "C-a - 1" window 11, etc.

bindkey [-d] [-m] [-a] [[-k|-t] string [cmd args]]

This command manages screen's input translation tables. Every entry in one of the tables tells screen how to react if a certain sequence of characters is encountered. There are three tables: one that should contain actions programmed by the user, one for the default actions used for terminal emulation and one for screen's copy mode to do cursor movement. See section "INPUT TRANSLATION" for a list of default key bindings. If the -d option is given, bindkey modifies the default table, -m changes the copy mode table and with neither option the user table is selected. The argument string is the sequence of characters to which an action is bound. This can either be a fixed string or a termcap keyboard capability name (selectable with the -k option). Some keys on a VT100 terminal can send a different string if application mode is turned on (e.g the cursor keys). Such keys have two entries in the translation table. You can select the application mode entry by specifying the -a option. The -t option tells screen not to do inter-character timing. One cannot turn off the timing if a termcap capability is used. Cmd can be any of screen's commands with an arbitrary number of args. If cmd is omitted the key-binding is removed from the table. Here are some examples of keyboard bindings:

bindkey -d Show all of the default key bindings. The application mode entries are marked with [A].

bindkey -k k1 select 1 Make the "F1" key switch to window one.

bindkey -t foo stuff barfoo Make "foo" an abbreviation of the word "barfoo". Timeout is disabled so that users can type slowly.

bindkey "\024" mapdefault This key-binding makes "^T" an escape character for key-bindings. If you did the above "stuff barfoo" binding, you can enter the word "foo" by typing "^Tfoo". If you want to insert a "^T" you have to press the key twice (i.e. escape the escape binding).

bindkey -k F1 command Make the F11 (not F1!) key an alternative screen escape (besides ^A).

break [duration]

Send a break signal for duration*0.25 seconds to this window. For non-Posix systems the time interval may be rounded up to full seconds. Most useful if a character device is attached to the window rather than a shell process (See also chapter "WINDOW TYPES"). The maximum duration of a break signal is limited to 15 seconds.

blanker

Activate the screen blanker. First the screen is cleared. If no blanker program is defined, the cursor is turned off, otherwise, the program is started and it's output is written to the screen. The screen blanker is killed with the first keypress, the read key is discarded. This command is normally used together with the "idle" command.

blankerprg [program args]

Defines a blanker program. Disables the blanker program if no arguments are given.

breaktype [tcsendbreak|TIOCSBRK |TCSBRK]

Choose one of the available methods of generating a break signal for terminal devices. This command should affect the current window only. But it still behaves identical to "defbreaktype". This will be changed in the future. Calling "breaktype" with no parameter displays the break method for the current window.

bufferfile [exchange-file]

Change the filename used for reading and writing with the paste buffer. If the optional argument to the "bufferfile" command is omitted, the default setting ("/tmp/screen-exchange") is reactivated. The following example will paste the system's password file into the screen window (using the paste buffer, where a copy remains):

C-a : bufferfile /etc/passwd C-a < C-a ] C-a : bufferfile

c1 [on|off]

Change c1 code processing. "C1 on" tells screen to treat the input characters between 128 and 159 as control functions. Such an 8-bit code is normally the same as ESC followed by the corresponding 7-bit code. The default setting is to process c1 codes and can be changed with the "defc1" command. Users with fonts that have usable characters in the c1 positions may want to turn this off.

caption always|splitonly [string] caption string [string]

This command controls the display of the window captions. Normally a caption is only used if more than one window is shown on the display (split screen mode). But if the type is set to always screen shows a caption even if only one window is displayed. The default is splitonly.

The second form changes the text used for the caption. You can use all escapes from the "STRING ESCAPES" chapter. Screen uses a default of `%3n %t'.

You can mix both forms by providing a string as an additional argument.

charset set

Change the current character set slot designation and charset mapping. The first four character of set are treated as charset designators while the fifth and sixth character must be in range '0' to '3' and set the GL/GR charset mapping. On every position a '.' may be used to indicate that the corresponding charset/mapping should not be changed (set is padded to six characters internally by appending '.' chars). New windows have "BBBB02" as default charset, unless a "encoding" command is active. The current setting can be viewed with the "info" command.

chdir [directory]

Change the current directory of screen to the specified directory or, if called without an argument, to your home directory (the value of the environment variable $HOME). All windows that are created by means of the "screen" command from within ".screenrc" or by means of "C-a : screen ..." or "C-a c" use this as their default directory. Without a chdir command, this would be the directory from which screen was invoked. Hardcopy and log files are always written to the window's default directory, not the current directory of the process running in the window. You can use this command multiple times in your .screenrc to start various windows in different default directories, but the last chdir value will affect all the windows you create interactively.

clear

Clears the current window and saves its image to the scrollback buffer.

colon [prefix]

Allows you to enter ".screenrc" command lines. Useful for on-the-fly modification of key bindings, specific window creation and changing settings. Note that the "set" keyword no longer exists! Usually commands affect the current window rather than default settings for future windows. Change defaults with commands starting with 'def...'.

If you consider this as the Ex command mode' of screen, you may regard "C-a esc" (copy mode) as its Vi command mode'.

command [-c class]

This command has the same effect as typing the screen escape character (^A). It is probably only useful for key bindings. If the "-c" option is given, select the specified command class. See also "bind" and "bindkey".

compacthist [on|off]

This tells screen whether to suppress trailing blank lines when scrolling up text into the history buffer.

console [on|off]

Grabs or un-grabs the machines console output to a window. Note: Only the owner of /dev/console can grab the console output. This command is only available if the machine supports the ioctl TIOCCONS.

copy

Enter copy/scrollback mode. This allows you to copy text from the current window and its history into the paste buffer. In this mode a vi-like `full screen editor' is active: Movement keys: h, j, k, l move the cursor line by line or column by column. 0, ^ and $ move to the leftmost column, to the first or last non-whitespace character on the line. H, M and L move the cursor to the leftmost column of the top, center or bottom line of the window.

  • and - positions one line up and down. G moves to the specified absolute line (default: end of buffer). | moves to the specified absolute column. w, b, e move the cursor word by word. B, E move the cursor WORD by WORD (as in vi). C-u and C-d scroll the display up/down by the specified amount of lines while preserving the cursor position. (Default: half screen-full). C-b and C-f scroll the display up/down a full screen. g moves to the beginning of the buffer. % jumps to the specified percentage of the buffer.

Note: Emacs style movement keys can be customized by a .screenrc command. (E.g. markkeys "h=^B:l=^F:$=^E") There is no simple method for a full emacs-style keymap, as this involves multi-character codes.

Marking: The copy range is specified by setting two marks. The text between these marks will be highlighted. Press space to set the first or second mark respectively. Y and y used to mark one whole line or to mark from start of line. W marks exactly one word. Repeat count: Any of these commands can be prefixed with a repeat count number by pressing digits 0..9 which is taken as a repeat count. Example: "C-a C-[ H 10 j 5 Y" will copy lines 11 to 15 into the paste buffer. Searching: / Vi-like search forward. ? Vi-like search backward. C-a s Emacs style incremental search forward. C-r Emacs style reverse i-search. Specials: There are however some keys that act differently than in vi. Vi does not allow one to yank rectangular blocks of text, but screen does. Press c or C to set the left or right margin respectively. If no repeat count is given, both default to the current cursor position. Example: Try this on a rather full text screen: "C-a [ M 20 l SPACE c 10 l 5 j C SPACE".

This moves one to the middle line of the screen, moves in 20 columns left, marks the beginning of the paste buffer, sets the left column, moves 5 columns down, sets the right column, and then marks the end of the paste buffer. Now try: "C-a [ M 20 l SPACE 10 l 5 j SPACE"

and notice the difference in the amount of text copied. J joins lines. It toggles between 4 modes: lines separated by a newline character (012), lines glued seamless, lines separated by a single whitespace and comma separated lines. Note that you can prepend the newline character with a carriage return character, by issuing a "crlf on". v is for all the vi users with ":set numbers" - it toggles the left margin between column 9 and 1. Press a before the final space key to toggle in append mode. Thus the contents of the paste buffer will not be overwritten, but is appended to. A toggles in append mode and sets a (second) mark.

sets the (second) mark and writes the contents of the paste buffer to the screen-exchange file (/tmp/screen-exchange per default) once copy-mode is finished. This example demonstrates how to dump the whole scrollback buffer to that file: "C-A [ g SPACE G $ >". C-g gives information about the current line and column. x exchanges the first mark and the current cursor position. You can use this to adjust an already placed mark. @ does nothing. Does not even exit copy mode. All keys not described here exit copy mode.

copy_reg [key]

No longer exists, use "readreg" instead.

crlf [on|off]

This affects the copying of text regions with the C-a [' command. If it is set to on', lines will be separated by the two character sequence CR' - LF'. Otherwise (default) only `LF' is used. When no parameter is given, the state is toggled.

debug on|off

Turns runtime debugging on or off. If screen has been compiled with option -DDEBUG debugging available and is turned on per default. Note that this command only affects debugging output from the main "SCREEN" process correctly. Debug output from attacher processes can only be turned off once and forever.

defc1 on|off

Same as the c1 command except that the default setting for new windows is changed. Initial setting is `on'.

defautonuke on|off

Same as the autonuke command except that the default setting for new displays is changed. Initial setting is off'. Note that you can use the special AN' terminal capability if you want to have a dependency on the terminal type.

defbce on|off

Same as the bce command except that the default setting for new windows is changed. Initial setting is `off'.

defbreaktype [tcsendbreak|TIOCSBRK |TCSBRK]

Choose one of the available methods of generating a break signal for terminal devices. The preferred methods are tcsendbreak and TIOCSBRK. The third, TCSBRK, blocks the complete screen session for the duration of the break, but it may be the only way to generate long breaks. Tcsendbreak and TIOCSBRK may or may not produce long breaks with spikes (e.g. 4 per second). This is not only system dependant, this also differs between serial board drivers. Calling "defbreaktype" with no parameter displays the current setting.

defcharset [set]

Like the charset command except that the default setting for new windows is changed. Shows current default if called without argument.

defescape xy

Set the default command characters. This is equivalent to the "escape" except that it is useful multiuser sessions only. In a multiuser session "escape" changes the command character of the calling user, where "defescape" changes the default command characters for users that will be added later.

defflow on|off|auto [interrupt]

Same as the flow command except that the default setting for new windows is changed. Initial setting is `auto'. Specifying "defflow auto interrupt" is the same as the command-line options -fa and -i.

defgr on|off

Same as the gr command except that the default setting for new windows is changed. Initial setting is `off'.

defhstatus [status]

The hardstatus line that all new windows will get is set to status. This command is useful to make the hardstatus of every window display the window number or title or the like. Status may contain the same directives as in the window messages, but the directive escape character is '^E' (octal 005) instead of '%'. This was done to make a misinterpretation of program generated hardstatus lines impossible. If the parameter status is omitted, the current default string is displayed. Per default the hardstatus line of new windows is empty.

defencoding enc

Same as the encoding command except that the default setting for new windows is changed. Initial setting is the encoding taken from the terminal.

deflog on|off

Same as the log command except that the default setting for new windows is changed. Initial setting is `off'.

deflogin on|off

Same as the login command except that the default setting for new windows is changed. This is initialized with `on' as distributed (see config.h.in).

defmode mode

The mode of each newly allocated pseudo-tty is set to mode. Mode is an octal number. When no "defmode" command is given, mode 0622 is used.

defmonitor on|off

Same as the monitor command except that the default setting for new windows is changed. Initial setting is `off'.

defnonblock on|off|numsecs

Same as the nonblock command except that the default setting for displays is changed. Initial setting is `off'.

defobuflimit limit

Same as the obuflimit command except that the default setting for new displays is changed. Initial setting is 256 bytes. Note that you can use the special 'OL' terminal capability if you want to have a dependency on the terminal type.

defscrollback num

Same as the scrollback command except that the default setting for new windows is changed. Initial setting is 100.

defshell command

Synonym to the shell command. See there.

defsilence on|off

Same as the silence command except that the default setting for new windows is changed. Initial setting is `off'.

defslowpaste msec"

Same as the slowpaste command except that the default setting for new windows is changed. Initial setting is 0 milliseconds, meaning `off'.

defutf8 on|off

Same as the utf8 command except that the default setting for new windows is changed. Initial setting is on' if screen was started with "-U", otherwise off'.

defwrap on|off

Same as the wrap command except that the default setting for new windows is changed. Initially line-wrap is on and can be toggled with the "wrap" command ("C-a r") or by means of "C-a : wrap on|off".

defwritelock on|off|auto

Same as the writelock command except that the default setting for new windows is changed. Initially writelocks will off.

defzombie [keys]

Synonym to the zombie command. Both currently change the default. See there.

detach [-h]

Detach the screen session (disconnect it from the terminal and put it into the background). This returns you to the shell where you invoked screen. A detached screen can be resumed by invoking screen with the -r option (see also section "COMMAND-LINE OPTIONS"). The -h option tells screen to immediately close the connection to the terminal ("hangup").

dinfo

Show what screen thinks about your terminal. Useful if you want to know why features like color or the alternate charset don't work.

displays

Shows a tabular listing of all currently connected user front-ends (displays). This is most useful for multiuser sessions.

digraph [preset]

This command prompts the user for a digraph sequence. The next two characters typed are looked up in a builtin table and the resulting character is inserted in the input stream. For example, if the user enters 'a"', an a-umlaut will be inserted. If the first character entered is a 0 (zero), screen will treat the following characters (up to three) as an octal number instead. The optional argument preset is treated as user input, thus one can create an "umlaut" key. For example the command "bindkey ^K digraph '"'" enables the user to generate an a-umlaut by typing CTRL-K a.

dumptermcap

Write the termcap entry for the virtual terminal optimized for the currently active window to the file ".termcap" in the user's "$HOME/.screen" directory (or wherever screen stores its sockets. See the "FILES" section below). This termcap entry is identical to the value of the environment variable $TERMCAP that is set up by screen for each window. For terminfo based systems you will need to run a converter like captoinfo and then compile the entry with tic.

echo [-n] message

The echo command may be used to annoy screen users with a 'message of the day'. Typically installed in a global /local/etc/screenrc. The option "-n" may be used to suppress the line feed. See also "sleep". Echo is also useful for online checking of environment variables.

encoding enc [enc]

Tell screen how to interpret the input/output. The first argument sets the encoding of the current window. Each window can emulate a different encoding. The optional second parameter overwrites the encoding of the connected terminal. It should never be needed as screen uses the locale setting to detect the encoding. There is also a way to select a terminal encoding depending on the terminal type by using the "KJ" termcap entry.

Supported encodings are eucJP, SJIS, eucKR, eucCN, Big5, GBK, KOI8-R, CP1251, UTF-8, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5, ISO8859-6, ISO8859-7, ISO8859-8, ISO8859-9, ISO8859-10, ISO8859-15, jis.

See also "defencoding", which changes the default setting of a new window.

escape xy

Set the command character to x and the character generating a literal command character (by triggering the "meta" command) to y (similar to the -e option). Each argument is either a single character, a two-character sequence of the form "^x" (meaning "C-x"), a backslash followed by an octal number (specifying the ASCII code of the character), or a backslash followed by a second character, such as "^" or "\". The default is "^Aa".

eval command1 [command2 ...]

Parses and executes each argument as separate command.

exec [[fdpat] newcommand [args ...]]

Run a unix subprocess (specified by an executable path newcommand and its optional arguments) in the current window. The flow of data between newcommands stdin/stdout/stderr, the process originally started in the window (let us call it "application-process") and screen itself (window) is controlled by the filedescriptor pattern fdpat. This pattern is basically a three character sequence representing stdin, stdout and stderr of newcommand. A dot (.) connects the file descriptor to screen. An exclamation mark (!) causes the file descriptor to be connected to the application-process. A colon (:) combines both. User input will go to newcommand unless newcommand receives the application-process' output (fdpats first character is !' or :') or a pipe symbol (|) is added (as a fourth character) to the end of fdpat. Invoking exec' without arguments shows name and arguments of the currently running subprocess in this window. Only one subprocess a time can be running in each window. When a subprocess is running the kill' command will affect it instead of the windows process. Refer to the postscript file doc/fdpat.ps' for a confusing illustration of all 21 possible combinations. Each drawing shows the digits 2,1,0 representing the three file descriptors of newcommand. The box marked W' is the usual pty that has the application-process on its replica side. The box marked `P' is the secondary pty that now has screen at its primary side.

Abbreviations: Whitespace between the word exec' and fdpat and the command can be omitted. Trailing dots and a fdpat consisting only of dots can be omitted. A simple |' is synonymous for the pattern !..|'; the word exec can be omitted here and can always be replaced by !'. Örnekler:

exec ... /bin/sh exec /bin/sh !/bin/sh

Orijinal kabuk hala çalışırken aynı pencerede başka bir kabuk oluşturur. Her iki kabuğun da çıktısı görüntülenir ve kullanıcı girdisi yeni /bin/sh sürecine gönderilir.

exec !.. stty 19200 exec ! stty 19200 !!stty 19200

Pencerenin tty hızını ayarlar. stty komutunuz stdout üzerinde çalışıyorsa, başka bir ! ekleyin.

exec !..| less |less

Bu, pencere çıktısına bir sayfalayıcı (pager) ekler. Sayfalayıcı girdisini pencerenin sürecinden alsa da, kullanıcının sayfalayıcı üzerinde kontrol sahibi olabilmesi için özel | karakteri gereklidir. Bu yöntem çalışır, çünkü less'in stdin'i bir tty olmadığında stderr'i dinler (screen'in | olmadan beklemeyeceği bir davranış). 177'den daha yeni less sürümleri burada feci şekilde başarısız olur; eski dost pg ise hala çalışmaktadır.

!:sed -n s/.Error./\007/p

Pencere çıktısını hem kullanıcıya hem de sed komutuna gönderir. sed, screen tarafından görülen pencere çıktısına ek bir zil karakteri (okt. 007) yerleştirir. Bu durum, pencerede "Error" dizesi her göründüğünde "Bell in window x" (x penceresinde zil) mesajlarının tetiklenmesine neden olur.

fit

Pencere boyutunu geçerli bölgenin boyutuna göre değiştirir. Bu komuta ihtiyaç duyulur, çünkü bir pencere birden fazla kez görüntülendiğinde screen pencere boyutunu otomatik olarak uyarlamaz.

flow [on|off|auto]

Bu pencere için akış kontrolü (flow-control) modunu ayarlar. Parametresiz kullanıldığında, geçerli pencerenin akış kontrolü ayarını sırasıyla "automatic", "on" ve "off" arasında döndürür. Tüm ayrıntılar için bu belgenin ilerleyen kısımlarındaki "FLOW-CONTROL" tartışmasına bakın ve bunun gelecekteki sürümlerde değişebileceğini unutmayın. Varsayılan değer defflow ile ayarlanır.

focus [up|down|top|bottom]

Girdi odağını bir sonraki bölgeye taşır. Bu işlem döngüsel bir şekilde yapılır, böylece en alttaki bölgeden sonra en üstteki bölge seçilir. Herhangi bir alt komut verilmezse varsayılan olarak down kabul edilir. up ters sırada döner, top ve bottom sırasıyla en üst ve en alt bölgeye gider. Yararlı tuş bağlantıları (vi'deki j ve k gibi) şunlardır: bind j focus down bind k focus up bind t focus top bind b focus bottom

gr [on|off]

GR karakter kümesi geçişini açar/kapatır. screen, 8. biti ayarlanmış bir girdi karakteri gördüğünde, GR yuvasında saklanan karakter kümesini kullanır ve karakteri 8. biti kaldırılmış olarak yazdırır. Varsayılan ayar (ayrıca bkz. "defgr") GR geçişini işlememektir, aksi takdirde ISO88591 karakter kümesi çalışmaz.

hardcopy [-h] [file]

Şu anda görüntülenen görüntüyü file dosyasına yazar; herhangi bir dosya adı belirtilmemişse varsayılan dizindeki hardcopy.n dosyasına yazar (burada n, geçerli pencerenin numarasıdır). Bu işlem, dosya mevcutsa üzerine yazar veya sonuna ekler. Aşağıya bakın. -h seçeneği belirtilirse, geri kaydırma (scrollback) arabelleğinin içeriğini de döker.

hardcopy_append on|off

"on" olarak ayarlanırsa, screen "C-a h" komutuyla oluşturulan "hardcopy.n" dosyalarının sonuna ekleme yapar, aksi takdirde bu dosyaların üzerine her seferinde yazılır. Varsayılan değer offdur.

hardcopydir directory

Ekran görüntüsü (hardcopy) dosyalarının yerleştirileceği bir dizin tanımlar. Ayarlanmazsa, ekran görüntüleri screen'in geçerli çalışma dizinine dökülür.

hardstatus [on|off] hardstatus [always]lastline|message|ignore [string] hardstatus string [string]

Bu komut, terminalin hardstatus satırının kullanımını ve emülasyonunu yapılandırır. İlk biçim, screen'in mesajları görüntülemek için donanım durum satırını kullanıp kullanmayacağını açıp kapatır. Bayrak off olarak ayarlanırsa, bu mesajlar ekran satırında ters video (reverse video) modunda gösterilir. Varsayılan ayar ondur.

İkinci biçim, terminalin bir hardstatus satırı yoksa (yani termcap/terminfo "hs", "ts", "fs" ve "ds" yetenekleri ayarlanmamışsa) screen'in ne yapacağını belirtir. "lastline" türü kullanılırsa, screen ekranın son satırını hardstatus için ayırır. "message" yeteneği screen'in mesaj mekanizmasını kullanır ve "ignore" yeteneği screen'e hardstatus satırını asla göstermemesini söyler. Türün önüne "always" kelimesini eklerseniz (örneğin, "alwayslastline"), terminal bir hardstatus desteklese bile screen bu türü kullanır.

Üçüncü biçim, hardstatus satırının içeriğini belirtir. Varsayılan dize olarak '%h' kullanılır; yani geçerli pencerenin saklanan durum bilgisi ("ESC]0;^G" veya "ESC_ESC" aracılığıyla ayarlanabilir) görüntülenir. Bunu, "STRING ESCAPES" bölümündeki kaçış dizileri de dahil olmak üzere istediğiniz herhangi bir dizeye göre özelleştirebilirsiniz. Dize argümanını boş bırakırsanız, geçerli dize görüntülenir.

Dizeyi ek bir argüman olarak sağlayarak ikinci ve üçüncü biçimleri birleştirebilirsiniz.

height [-w|-d] [lines [cols]]

Ekran yüksekliğini belirtilen satır sayısına ayarlar. Herhangi bir argüman verilmediğinde 24 ve 42 satırlık ekran arasında geçiş yapar. Her iki değeri de değiştirmek isterseniz bir genişlik (cols) de belirtebilirsiniz. -w seçeneği screen'e ekran boyutunu değiştirmeden bırakmasını ve sadece pencere boyutunu ayarlamasını söyler, -d seçeneği ise tam tersini yapar.

help [-c class]

Tam olarak bir çevrimiçi yardım sayılmasa da, size tüm tuş bağlantılarını gösteren bir yardım ekranı görüntüler. İlk sayfalar tüm dahili komutları ve ardından mevcut tuş bağlantılarını listeler. Sonraki sayfalar ise her tuş için bir komut olacak şekilde özel komutları görüntüler. Her sayfayı okumayı bitirdiğinizde boşluk (space) tuşuna basın veya erken çıkmak için return tuşuna basın. Diğer tüm karakterler yoksayılır. "-c" seçeneği verilirse, belirtilen komut sınıfı için tüm bağlı komutları görüntüler. Ayrıca "DEFAULT KEY BINDINGS" bölümüne bakın.

history

Kullanıcılar genellikle önceki komutlara kolay erişim sağlayan bir kabukla çalışırlar. Örneğin csh, yürütülen son komutu tekrarlamak için "!!" komutuna sahiptir. Screen, "... başlatan komutu" yeniden çağırmanın ilkel bir yolunu sunar: Komutun ilk harfini yazıp ardından C-a { tuşlarına basarsınız ve screen, imlecin solundaki istem karakteri (prompt character) ile eşleşen önceki bir satırı bulmaya çalışır. Bu satır, bu pencerenin girdi kuyruğuna yapıştırılır. Böylece kaba bir komut geçmişine (görünür pencere ve onun geri kaydırma arabelleğinden oluşan) sahip olursunuz.

hstatus status

Pencerenin hardstatus satırını status dizesi olarak değiştirir.

idle [timeout [cmd args]]

Belirtilen saniye boyunca işlem yapılmadığında çalıştırılacak bir komut ayarlar. Bu komut normalde bir ekran koruyucu oluşturmak için "blanker" komutu olacaktır, ancak herhangi bir screen komutu da olabilir. Herhangi bir komut belirtilmezse, yalnızca zaman aşımı süresi ayarlanır. Sıfır değerinde bir zaman aşımı (veya özel off zaman aşımı) zamanlayıcıyı devre dışı bırakır. Herhangi bir argüman verilmezse geçerli ayarlar görüntülenir.

ignorecase [on|off]

Aramalarda karakterlerin harf büyüklüğünün yoksayılmasını screen'e söyler. Varsayılan değer offdur.

info

Geçerli pencere hakkında bazı bilgileri görüntülemek için mesaj satırını kullanır: "(1,1)" ile başlayan "(sütun,satır)" biçimindeki imleç konumu, terminal genişliği ve yüksekliği ile satır cinsinden geri kaydırma arabelleğinin boyutu (örneğin "(80,24)+50" gibi), pencerenin XON/XOFF akış kontrolünün geçerli durumu aşağıdaki gibi gösterilir (Ayrıca bkz. FLOW CONTROL bölümü):

+flow otomatik akış kontrolü, şu anda açık. -flow otomatik akış kontrolü, şu anda kapalı. +(+)flow akış kontrolü etkin. Otomatik kontrol ile uyumlu. -(+)flow akış kontrolü devre dışı. Otomatik kontrol ile uyumsuz. +(-)flow akış kontrolü etkin. Otomatik kontrol ile uyumsuz. -(-)flow akış kontrolü devre dışı. Otomatik kontrol ile uyumlu.

Geçerli satır kaydırma (wrap) ayarı da gösterilir (+wrap etkin olduğunu, -wrap ise etkin olmadığını belirtir). Pencere ekleme modunda (insert mode), orijin modunda (origin mode), uygulama klavyesi modunda (application-keypad mode) olduğunda, çıktı günlüğüne (output logging), etkinlik izlemeye (activity monitoring) veya kısmi yeniden çizime (partial redraw) sahip olduğunda sırasıyla ins, org, app, log, mon veya nored bayrakları gösterilir.

Şu anda etkin olan karakter kümesi (G0, G1, G2 veya G3) ve G0 ila G3 olarak atanan terminal karakter kümeleri köşeli parantez içinde gösterilir. Pencere UTF-8 modundaysa, bunun yerine "UTF-8" dizesi gösterilir.

Pencerenin türüne bağlı olarak ek modlar durum satırının sonunda görüntülenir (Ayrıca bkz. "WINDOW TYPES" bölümü). Terminal emülatörünün durum makinesi varsayılan olmayan bir durumdaysa, info satırı mevcut durumu tanımlayan bir dizeyle başlar. Sistem bilgileri için "time" komutunu kullanın.

ins_reg [key]

Artık mevcut değil, bunun yerine "paste" kullanın.

kill

Geçerli pencereyi kapatır (kill). Eğer çalışan bir exec komutu varsa, bu sonlandırılır. Aksi takdirde, pencerede çalışan süreç (kabuk) bir HANGUP sinyali alır, pencere yapısı kaldırılır ve screen (ekranınız) başka bir pencereye geçer. Son pencere de yok edildiğinde screen sonlanır. Bir kill işleminden sonra screen, daha önce görüntülenen pencereye geçer. Not: Emacs kullanıcıları bir satırı silerken bu komutu akıllarında tutmalıdırlar. screen kaçış tuşu olarak "C-a" kullanılması veya kill komutunun "C-a K" tuşuna yeniden bağlanması önerilmez.

lastmsg

Mesaj/durum satırının son içeriğini yeniden görüntüler. Bir mesaj göründüğünde yazı yazıyorsanız yararlıdır, çünkü bir tuşa bastığınızda mesaj kaybolur (terminalinizde donanımsal bir durum satırı yoksa). İnce ayar için "msgwait" ve "msgminwait" komutlarına bakın.

license

Sorumluluk reddi sayfasını görüntüler. Bu işlem, screen herhangi bir seçenek olmadan başlatıldığında gerçekleştirilir, bu da yeterince sık olmalıdır. Ayrıca "startup_message" komutuna bakın.

lockscreen

Bu ekranı kilitler. Bir ekran kilitleme programı çağırır (/local/bin/lck veya /usr/bin/lock ya da başka bir program mevcut değilse yerleşik bir kilitleyici). Bu program sonlanana kadar screen hiçbir komut tuşunu kabul etmez. Bu sırada pencereler detached (ayrılmış) durumda olduğundan pencerelerdeki süreçler çalışmaya devam edebilir. Ekran kilitleme programı, screen'in başlatıldığı kabukta ayarlanması gereken $LOCKPRG çevre değişkeni aracılığıyla değiştirilebilir ve kullanıcının uid ve gid değerleri ile yürütülür. Uyarı: Diğer kabukları kilitsiz bıraktığınızda ve screen üzerinde bir şifre belirlemediğinizde kilit geçersiz kalır: Kilitsiz bir kabuktan kolayca yeniden bağlanılabilir (re-attach). Bu özelliğe daha çok lockterminal adı verilmelidir.

log [on|off]

Geçerli pencerenin çıktısını, pencerenin varsayılan dizinindeki "screenlog.n" dosyasına yazmayı başlatır/durdurur (burada n, geçerli pencerenin numarasıdır). Bu dosya adı logfile komutuyla değiştirilebilir. Herhangi bir parametre verilmezse günlük kaydı durumu tersine çevrilir. Dosya zaten mevcutsa, oturum günlüğü dosyanın önceki içeriğinin sonuna eklenir. Güncel içerik ve geri kaydırma geçmişinin içeriği oturum günlüğüne dahil edilmez. Varsayılan değer offdur.

logfile filename logfile flush secs

Günlük dosyalarının alacağı adı tanımlar. Varsayılan değer "screenlog.%n" şeklindedir. İkinci biçim, screen'in günlük dosyası arabelleğini dosya sistemine yazmadan (flush) önce bekleyeceği saniye sayısını değiştirir. Varsayılan değer 10 saniyedir.

login [on|off]

Geçerli pencere için utmp veritabanı dosyasındaki girdiyi ekler veya kaldırır. Bu, pencerenin sisteme giriş yapmış (logged in) olup olmadığını kontrol eder. Herhangi bir parametre verilmezse pencerenin giriş durumu tersine çevrilir. Bu geçişe ek olarak, bir giriş yapma (log in) ve bir çıkış yapma (log out) tuşuna sahip olmak kolaylık sağlar. Örneğin, bind I login on ve bind O login off komutları bu tuşları C-a I ve C-a O olarak eşleyecektir. Varsayılan ayar (config.h.in içinde), suid-root altında çalışan bir screen için "on" olmalıdır. Yeni pencereler için varsayılan giriş durumunu değiştirmek üzere "deflogin" komutunu kullanın. Her iki komut da yalnızca screen utmp desteği ile derlendiğinde mevcuttur.

logtstamp [on|off] logtstamp after [secs] logtstamp string [string]

Bu komut, screen'in günlük dosyası zaman damgası mekanizmasını kontrol eder. Zaman damgaları "on" olarak ayarlanırsa screen, iki dakikalık işlem yapılmama süresinden sonra günlük dosyasına geçerli saati içeren bir dize ekler. Çıktı devam ettiğinde ve bir iki dakika daha geçtiğinde, çıktının yeniden başladığını belgelemek için ikinci bir zaman damgası eklenir. Bu zaman aşımı süresini komutun ikinci biçimiyle değiştirebilirsiniz. Üçüncü biçim, zaman damgası dizesini özelleştirmek için kullanılır (varsayılan olarak -- %n:%t -- time-stamp -- %M/%d/%y %c:%s --\n şeklindedir).

mapdefault

screen'e bir sonraki girdi karakterinin yalnızca varsayılan bindkey tablosunda aranması gerektiğini söyler. Ayrıca "bindkey" komutuna bakın.

mapnotnext

mapdefault gibidir, ancak varsayılan bindkey tablosuna bile bakmaz.

maptimeout [timo]

Girdi dizisi algılaması için karakterler arası zamanlayıcıyı timo milisaniye zaman aşımına ayarlar. Varsayılan zaman aşımı süresi 300 ms'dir. Argümansız maptimeout geçerli ayarı gösterir. Ayrıca "bindkey" komutuna bakın.

markkeys string

Kopyalama/geçmiş (copy/history) modu için kullanılan tuş haritasını değiştirme yöntemidir. Dize, : ile ayrılmış oldchar=newchar çiftlerinden oluşur. Örnek: "B=^B:F=^F" dizesi, C-b ve C-f tuşlarını vi tarzı bağlantıya değiştirecektir (tam sayfayı yukarı/aşağı kaydır). Bu, B ve F için varsayılan bağlantıdır. "markkeys h=^B:l=^F:$=^E" komutu emacs tarzı bir bağlantı için modu ayarlayacaktır. Terminaliniz kopyalama modunu iptal etmenize neden olan karakterler gönderiyorsa, bu komut bu karakterleri hiçbir şey yapmayacak şekilde bağlayarak yardımcı olabilir. İşlem yapmayan (no-op) karakter @dir ve şu şekilde kullanılır: H veya L komutlarını artık kullanmak istemiyorsanız "markkeys @=L=H". Bu örnekte gösterildiği gibi, tek bir ifadede birden fazla tuş tek bir işleve atanabilir.

maxwin num

screen'in oluşturacağı maksimum pencere sayısını ayarlar. Halihazırda mevcut olan pencereleri etkilemez. Bu sayı yalnızca azaltılabilir.

meta

Komut karakterini (C-a) geçerli pencerenin girdi akışına ekler.

monitor [on|off]

Pencerelerin etkinlik izlemesini (activity monitoring) açıp kapatır. İzleme açıldığında ve etkilenen bir pencere arka plana alındığında, ilk çıktı belirtisinde durum satırında etkinlik bildirim mesajı alırsınız ve pencere ayrıca pencere durumu ekranında bir @ ile işaretlenir. İzleme başlangıçta tüm pencereler için kapalıdır.

msgminwait sec

Geçerli bir mesaj görüntülenirken screen'in yeni bir mesajı ne kadar süre geciktireceğini tanımlar. Varsayılan değer 1 saniyedir.

msgwait sec

screen başka bir etkinlik tarafından rahatsız edilmediğinde bir mesajın ne kadar süre görüntüleneceğini tanımlar. Varsayılan değer 5 saniyedir.

multiuser on|off

Tek kullanıcılı ve çok kullanıcılı mod arasında geçiş yapar. Standart screen çalışması tek kullanıcılıdır. Çok kullanıcılı modda, bu screen oturumuna erişen diğer kullanıcıları etkinleştirmek (ve devre dışı bırakmak) için acladd, aclchg, aclgrp ve acldel komutları kullanılabilir.

nethack on|off

screen tarafından kullanılan hata mesajlarının türünü değiştirir. "nethack" oyununa aşinaysanız, gerçekleri biraz bulanıklaştıran ancak okuması çok daha eğlenceli olan nethack tarzı mesajlardan keyif alabilirsiniz. Zaten standart mesajlar da genellikle belirsiz olma eğilimindedir. Bu seçenek yalnızca screen NETHACK bayrağı tanımlanarak derlenmişse kullanılabilir. Varsayılan ayar, $NETHACKOPTIONS çevre değişkeninin varlığına göre belirlenir.

next

Bir sonraki pencereye geçer. Bu komut, pencereler listesinde döngü yapmak için tekrar tekrar kullanılabilir.

nonblock [on|off|numsecs]

Çıktı kabul etmeyi durduran kullanıcı arayüzleri (ekranlar) ile screen'in nasıl başa çıkacağını belirtir. Bu durum, bir kullanıcının ^S tuşuna basması veya bir TCP/modem bağlantısının kesilmesi ancak herhangi bir kapatma (hangup) sinyalinin alınmaması durumunda meydana gelebilir. nonblock kapalıysa (varsayılan budur) screen çıktıyı kabul etmek için ekranın yeniden başlamasını bekler. nonblock açıksa, screen zaman aşımına ulaşılana kadar bekler (açık değeri 1 saniye olarak kabul edilir). Ekran hala karakter almıyorsa, screen bunu "bloke olmuş" (blocked) kabul eder ve ona karakter göndermeyi durdurur. Bir süre sonra karakterleri tekrar kabul etmeye başlarsa, screen ekranın engelini kaldırır ve güncellenen pencere içeriğini yeniden görüntüler.

number [n]

Geçerli pencere numarasını değiştirir. Verilen n numarası zaten başka bir pencere tarafından kullanılıyorsa, her iki pencere numaralarını birbiriyle değiştirir. Herhangi bir argüman belirtilmezse, geçerli pencere numarası (ve başlığı) gösterilir.

obuflimit [limit]

Çıktı arabelleği belirtilen sınırdan daha fazla bayt içeriyorsa, pencerelerden daha fazla veri okunmaz. Varsayılan değer 256'dır. Hızlı bir ekranınız varsa (xterm gibi), bunu daha yüksek bir değere ayarlayabilirsiniz. Herhangi bir argüman belirtilmezse geçerli ayar görüntülenir.

only

Geçerli bölge dışındaki tüm bölgeleri kapatır.

other

Daha önce görüntülenen pencereye geçer. Bu pencere artık mevcut değilse, other komutu next ile aynı etkiye sahip olur.

partial on|off

Geçerli pencereye geçiş yaptıktan sonra ekranın yenilenip yenilenmeyeceğini (redisplay ile olduğu gibi) tanımlar. Bu komut yalnızca geçerli pencereyi etkilemez. Tüm pencereleri hemen etkilemek için allpartial komutunu kullanın. Varsayılan değer elbette offdur. Şu anda bir defpartial komutu bulunmadığından bu varsayılan değer sabittir.

password [crypted_pw]

".screenrc" dosyanızda şifrelenmiş bir parola sunun; birisi ayrılmış (detached) bir oturumu yeniden başlatmaya çalıştığında screen bu parolayı isteyecektir. Bu, screen altında ayrıcalıklı programlar çalıştırıyorsanız ve oturumunuzu, sizin uid'nizi taklit eden başka bir kullanıcının (yani herhangi bir süper kullanıcının) yeniden bağlanma girişimlerinden korumak istiyorsanız yararlıdır. Şifrelenmiş bir parola belirtilmezse, screen parola yazılması için iki kez sorar ve parolanın şifrelenmiş halini yapıştırma (paste) arabelleğine yerleştirir. Varsayılan değer nonedır ve bu şifre kontrolünü devre dışı bırakır.

paste [registers [dest_reg]]

Belirtilen yazmaçların (register) (birleştirilmiş) içeriklerini geçerli pencerenin stdin kuyruğuna yazar. '.' yazmacı yapıştırma arabelleği olarak kabul edilir. Herhangi bir parametre verilmezse kullanıcıdan yapıştırılacak tek bir yazmaç istenir. Yapıştırma arabelleği copy, history ve readbuf komutlarıyla doldurulabilir. Diğer yazmaçlar register, readreg ve paste komutlarıyla doldurulabilir. Paste ikinci bir argümanla çağrılırsa, belirtilen yazmaçların içeriği pencere yerine adı belirtilen hedef yazmaca yapıştırılır. İkinci argüman olarak '.' kullanılırsa, ekranın yapıştırma arabelleği hedeftir. "paste" komutunun çok çeşitli kaynaklar kullandığını unutmayın: İkinci bir argüman belirtildiğinde geçerli bir pencereye gerek duyulmaz. Kaynak belirtimi yalnızca yazmaçları içeriyorsa (yapıştırma arabelleğini değil), yazmaçlar genel bir kaynak olduğundan geçerli bir ekranın (terminale bağlı) olmasına gerek yoktur. Yapıştırma arabelleği her kullanıcı için bir kez mevcuttur.

pastefont [on|off]

screen'e yapıştırma arabelleğine yazı tipi (font) bilgilerini dahil etmesini söyler. Varsayılan değer bunu yapmamaktır. Bu komut özellikle kanji gibi çok karakterli yazı tipleri için yararlıdır.

pow_break

Pencerenin terminal hattını yeniden açar ve bir kesme (break) sinyali gönderir. Bkz. break.

pow_detach

Güçlü ayırma (Power detach). Temel olarak detach ile aynıdır, ancak screen'in üst sürecine de bir HANGUP sinyali gönderir. DİKKAT: screen giriş kabuğunuzdan başlatıldıysa bu işlem oturumun kapatılmasıyla (logout) sonuçlanacaktır.

pow_detach_msg [message]

Burada belirtilen mesaj, bir Power detach gerçekleştirildiğinde çıktı olarak verilir. Bir oturum kapatma mesajının yerine veya baud hızını sıfırlamak vb. için kullanılabilir. Parametre olmadan geçerli mesaj gösterilir.

prev

Bir alt numaraya sahip pencereye geçer. Bu komut, pencereler listesinde döngü yapmak için tekrar tekrar kullanılabilir.

printcmd [cmd]

cmd boş bir dize değilse, screen bir ansi yazdırma dizisi ESC [ 5 i algıladığında terminal yetenekleri olan "po/pf"yi kullanmaz, çıktıyı cmd'ye yönlendirir. Bu normalde "lpr" veya "'cat > /tmp/scrprint'" gibi bir komut olmalıdır. Komutsuz printcmd geçerli ayarı görüntüler. ansi dizisi ESC \ yazdırmayı sonlandırır ve yönlendirmeyi (pipe) kapatır. Uyarı: Bu komuta dikkat edin! Diğer kullanıcıların terminalinize yazma erişimi varsa, yazdırma komutlarını tetikleyebilirler.

process [key]

Belirtilen yazmacın içeriğini screen'in girdi kuyruğuna doldurur. Herhangi bir argüman verilmezse sizden bir yazmaç adı istenir. Metin, kullanıcının klavyesinden yazılmış gibi çözümlenir. Bu komut, tek bir tuşa birden fazla eylem bağlamak için kullanılabilir.

quit

Tüm pencereleri sonlandırır ve screen'i bitirir. VT100 tarzı terminallerde C-4 ve C-\ tuşlarının aynı olduğunu unutmayın. Bu durum varsayılan tuş bağlantılarını tehlikeli hale verir: 4 numaralı pencereyi seçerken yanlışlıkla C-a C-4 yazmamaya dikkat edin. Bir tuş bağlantısını kaldırmak için boş bind komutunu kullanın (örneğin "bind '^'").

readbuf [-e encoding] [filename]

Belirtilen dosyanın içeriğini yapıştırma arabelleğine okur. -e seçeneği ile screen'e dosyanın kodlamasını (encoding) bildirebilirsiniz. Herhangi bir dosya belirtilmezse, ekran değiştirme (screen-exchange) dosya adı kullanılır. Ayrıca "bufferfile" komutuna bakın.

readreg [-e encoding] [register [filename]]

Argüman sayısına bağlı olarak iki şeyden birini yapar: sıfır veya bir argümanla, yapıştırma arabelleği içeriğini belirtilen veya istemde girilen yazmaca kopyalar. İki argümanla, readbuf komutunun ekran değiştirme dosyasını yapıştırma arabelleğine okuması gibi, adı belirtilen dosyanın içeriğini yazmaca okur. -e seçeneği aracılığıyla screen'e dosyanın kodlamasını bildirebilirsiniz. Aşağıdaki örnek, sistemin parola dosyasını screen penceresine yapıştıracaktır (kopyanın kalacağı p yazmacını kullanarak):

C-a : readreg p /etc/passwd C-a : paste p

redisplay

Geçerli pencereyi yeniden görüntüler. Kısmi yeniden çizim modundayken tam bir yeniden görüntüleme elde etmek için gereklidir.

register [-e encoding] key string

Belirtilen dizeyi key yazmacına kaydeder. Dizenin kodlaması -e seçeneğiyle belirtilebilir. Ayrıca "paste" komutuna bakın.

remove

Geçerli bölgeyi kapatır. Yalnızca bir bölge varsa bu komut hiçbir şey yapmaz.

removebuf

"writebuf" ve "readbuf" komutları tarafından kullanılan ekran değiştirme (screen-exchange) dosyasının bağlantısını kaldırır (unlink).

reset

Sanal terminali "güç açma" (power-on) değerlerine sıfırlar. Bir uygulamadan garip ayarlar (kaydırma bölgeleri veya grafik karakter kümesi gibi) kaldığında yararlıdır.

resize

Geçerli bölgeyi yeniden boyutlandırır. Alan alttaki bölgeden alınır veya ona eklenir; yeterli alan yoksa üstteki bölge kullanılır.

resize +N geçerli bölge yüksekliğini N kadar artırır

resize -N geçerli bölge yüksekliğini N kadar azaltır

resize N geçerli bölge yüksekliğini N olarak ayarlar

resize = tüm pencereleri eşit yükseklikte yapar

resize max geçerli bölge yüksekliğini en üst düzeye çıkarır

resize min geçerli bölge yüksekliğini en alt düzeye indirir

screen [-opts] [n] [cmd [args]]

Yeni bir pencere kurar. Akış kontrolü seçenekleri (-f, -fn ve -fa), başlık seçeneği (-t), giriş seçenekleri (-l and -ln), terminal türü seçeneği (-T ), tüm yetenekler bayrağı (-a) ve geri kaydırma seçeneği (-h ) her komutla belirtilebilir. Seçenek (-M) bu pencere için izlemeyi açar. Seçenek (-L) bu pencere için çıktı günlüğünü açar. 0..9 aralığında isteğe bağlı bir n sayısı verilirse, yeni oluşturulan pencereye n pencere numarası atanır (veya bu numara zaten kullanımdaysa kullanılabilir bir sonraki numara atanır). "screen" kelimesinden sonra bir komut belirtilirse, bu komut (verilen argümanlarla birlikte) pencerede başlatılır; aksi takdirde bir kabuk oluşturulur. Bu nedenle, ".screenrc" dosyanız şu satırları içeriyorsa:

.screenrc için örnek:

screen 1 screen -fn -t foobar -L 2 telnet foobar

screen bir kabuk penceresi (1 numaralı pencerede) ve foobar makinesine TELNET bağlantısı olan bir pencere oluşturur (akış kontrolü olmadan, 2 numaralı pencerede "foobar" başlığı kullanılarak) ve telnet oturumunun günlük dosyasını ("screenlog.2") yazacaktır. screen'in önceki sürümlerinden farklı olarak, ".screenrc" dosyanıza "screen" komutları eklendiğinde ek bir varsayılan pencerenin oluşturulmadığını unutmayın. Başlatma tamamlandığında screen, .screenrc dosyanızda belirtilen son pencereye geçer veya hiç belirtilmemişse varsayılan 0 numaralı pencereyi açar. Screen, "cu" ve "telnet"in bazı işlevlerini yerleşik olarak barındırır. Ayrıca bkz. "WINDOW TYPES" bölümü.

scrollback num

Geçerli pencereler için geri kaydırma arabelleğinin boyutunu num satır olarak ayarlar. Varsayılan geri kaydırma 100 satırdır. Ayrıca "defscrollback" komutuna bakın ve geçerli ayarı görmek için "C-a i" tuşunu kullanın.

select [WindowID]

WindowID ile belirtilen pencereye geçer. Bu, bir pencere başlığının öneki (alfanümerik pencere adı) veya bir pencere numarası olabilir. Parametre isteğe bağlıdır ve atlanırsa sizden bir kimlik istenir. Yeni bir pencere kurulduğunda, bu pencereye kullanılabilir ilk numara atanır. Böylece, ilk pencere "select 0" ile etkinleştirilebilir. Pencere sayısı, derleme zamanında MAXWIN yapılandırma parametresiyle sınırlandırılmıştır. İki özel WindowID vardır: "-" dahili boş pencereyi seçer ve "." geçerli pencereyi seçer. İkincisi, screen'in "-X" seçeneğiyle kullanıldığında yararlıdır.

sessionname [name]

Geçerli oturumu yeniden adlandırır. "screen -list" komutu için adın önüne süreç kimliğinin eklendiğini unutmayın. "name" argümanı atlanırsa, bu oturumun adı görüntülenir. Dikkat: $STY çevre değişkenleri hala eski adı yansıtır. Bu durum kafa karışıklığına neden olabilir. Varsayılan ad, tty ve ana bilgisayar (host) adlarından oluşturulur.

setenv [var [string]]

var çevre değişkenini string değerine ayarlar. Yalnızca var belirtilirse, kullanıcıdan bir değer girmesi istenir. Hiçbir parametre belirtilmezse, kullanıcıdan hem değişken hem de değer istenir. Çevre değişkenleri, sonradan çatallanan (fork) tüm kabuklar tarafından devralınır.

setsid [on|off]

Normalde screen, pencereler için farklı oturumlar ve süreç grupları kullanır. setsid kapatılırsa bu artık yapılmaz ve tüm pencereler screen arka plan süreciyle aynı süreç grubunda olur. Bu durum iş kontrolünü (job-control) de bozar, bu yüzden dikkatli olun. Varsayılan değer elbette açıktır (on). Bu komut muhtemelen yalnızca nadir durumlarda yararlıdır.

shell command

Yeni bir kabuk oluşturmak için kullanılacak komutu ayarlar. Bu, $SHELL çevre değişkeninin değerini geçersiz kılar. $SHELL içinde belirtilen programı yürütmeyi bekleyen bir tty iyileştirici çalıştırmak istiyorsanız bu yararlıdır. Komut bir '-' karakteri ile başlıyorsa, kabuk bir giriş kabuğu (login-shell) olarak başlatılacaktır.

shelltitle title

Başlangıç sırasında veya C-A C-c komutuyla oluşturulan tüm kabuklar için başlığı ayarlar. Başlığın ne olduğuna ilişkin ayrıntılar için "TITLES (naming windows)" başlıklı tartışmaya bakın.

silence [on|off|sec]

Pencerelerin sessizlik izlemesini (silence monitoring) açıp kapatır. Sessizlik izleme açıldığında ve etkilenen bir pencere arka plana alındığında, belirtilen bir hareketsizlik (sessizlik) süresinden sonra durum satırında sessizlik bildirim mesajı alırsınız. Varsayılan zaman aşımı süresi silencewait komutuyla veya on ya da off yerine saniye cinsinden bir sayı belirtilerek değiştirilebilir. Sessizlik izleme başlangıçta tüm pencereler için kapalıdır.

silencewait sec

Define the time that all windows monitored for silence should wait before displaying a message. Default 30 seconds.

sleep num

This command will pause the execution of a .screenrc file for num seconds. Keyboard activity will end the sleep. It may be used to give users a chance to read the messages output by "echo".

slowpaste msec

Define the speed at which text is inserted into the current window by the paste ("C-a ]") command. If the slowpaste value is nonzero text is written character by character. screen will make a pause of msec milliseconds after each single character write to allow the application to process its input. Only use slowpaste if your underlying system exposes flow control problems while pasting large amounts of text.

source file

Read and execute commands from file file. Source commands may be nested to a maximum recursion level of ten. If file is not an absolute path and screen is already processing a source command, the parent directory of the running source command file is used to search for the new command file before screen's current directory.

Note that termcap/terminfo/termcapinfo commands only work at startup and reattach time, so they must be reached via the default screenrc files to have an effect.

sorendition [attr [color]]

Change the way screen does highlighting for text marking and printing messages. See the "STRING ESCAPES" chapter for the syntax of the modifiers. The default is currently "=s dd" (standout, default colors).

split

Split the current region into two new ones. All regions on the display are resized to make room for the new region. The blank window is displayed on the new region. Use the "remove" or the "only" command to delete regions.

startup_message on|off

Select whether you want to see the copyright notice during startup. Default is `on', as you probably noticed.

stuff string

Stuff the string string in the input buffer of the current window. This is like the "paste" command but with much less overhead. You cannot paste large buffers with the "stuff" command. It is most useful for key bindings. See also "bindkey".

su [username [password [password2]]

Substitute the user of a display. The command prompts for all parameters that are omitted. If passwords are specified as parameters, they have to be specified un-crypted. The first password is matched against the systems passwd database, the second password is matched against the screen password as set with the commands "acladd" or "password". "Su" may be useful for the screen administrator to test multiuser setups. When the identification fails, the user has access to the commands available for user nobody. These are "detach", "license", "version", "help" and "displays".

suspend

Suspend screen. The windows are in the `detached' state, while screen is suspended. This feature relies on the shell being able to do job control.

term term

In each window's environment screen opens, the $TERM variable is set to "screen" by default. But when no description for "screen" is installed in the local termcap or terminfo data base, you set $TERM to - say - "vt100". This won't do much harm, as screen is VT100/ANSI compatible. The use of the "term" command is discouraged for non-default purpose. That is, one may want to specify special $TERM settings (e.g. vt100) for the next "screen rlogin othermachine" command. Use the command "screen -T vt100 rlogin othermachine" rather than setting and resetting the default.

termcap term terminal-tweaks [window-tweaks] terminfo term terminal-tweaks [window-tweaks] termcapinfo term terminal-tweaks [window-tweaks]

Use this command to modify your terminal's termcap entry without going through all the hassles involved in creating a custom termcap entry. Plus, you can optionally customize the termcap generated for the windows. You have to place these commands in one of the screenrc startup files, as they are meaningless once the terminal emulator is booted. If your system works uses the terminfo database rather than termcap, screen will understand the terminfo' command, which has the same effects as the termcap' command. Two separate commands are provided, as there are subtle syntactic differences, e.g. when parameter interpolation (using %') is required. Note that termcap names of the capabilities have to be used with the terminfo' command. In many cases, where the arguments are valid in both terminfo and termcap syntax, you can use the command termcapinfo', which is just a shorthand for a pair of termcap' and `terminfo' commands with identical arguments.

The first argument specifies which terminal(s) should be affected by this definition. You can specify multiple terminal names by separating them with |'s. Use ' to match all terminals and `vt' to match all terminals that begin with "vt".

Each tweak argument contains one or more termcap defines (separated by `:'s) to be inserted at the start of the appropriate termcap entry, enhancing it or overriding existing values. The first tweak modifies your terminal's termcap, and contains definitions that your terminal uses to perform certain functions. Specify a null string to leave this unchanged (e.g. ''). The second (optional) tweak modifies all the window termcaps, and should contain definitions that screen understands (see the "VIRTUAL TERMINAL" section).

Some examples:

termcap xterm* LP:hs@

Informs screen that all terminals that begin with xterm' have firm auto-margins that allow the last position on the screen to be updated (LP), but they don't really have a status line (no 'hs' - append @' to turn entries off). Note that we assume `LP' for all terminal names that start with "vt", but only if you don't specify a termcap command for that terminal.

termcap vt* LP termcap vt102|vt220 Z0=\E[?3h:Z1=\E[?3l

Specifies the firm-margined LP' capability for all terminals that begin with vt', and the second line will also add the escape-sequences to switch into (Z0) and back out of (Z1) 132-character-per-line mode if this is a VT102 or VT220. (You must specify Z0 and Z1 in your termcap to use the width-changing commands.)

termcap vt100 "" l0=PF1:l1=PF2:l2=PF3:l3=PF4

This leaves your vt100 termcap alone and adds the function key labels to each window's termcap entry.

termcap h19|z19 am@:im=\E@:ei=\EO dc=\E[P

Takes a h19 or z19 termcap and turns off auto-margins (am@) and enables the insert mode (im) and end-insert (ei) capabilities (the @' in the im' string is after the =', so it is part of the string). Having the im' and `ei' definitions put into your terminal's termcap will cause screen to automatically advertise the character-insert capability in each window's termcap. Each window will also get the delete-character capability (dc) added to its termcap, which screen will translate into a line-update for the terminal (we're pretending it doesn't support character deletion).

If you would like to fully specify each window's termcap entry, you should instead set the $SCREENCAP variable prior to running screen. See the discussion on the "VIRTUAL TERMINAL" in this manual, and the termcap(5) man page for more information on termcap definitions.

time [string]

Uses the message line to display the time of day, the host name, and the load averages over 1, 5, and 15 minutes (if this is available on your system). For window specific information use "info".

If a string is specified, it changes the format of the time report like it is described in the "STRING ESCAPES" chapter. Screen uses a default of "%c:%s %M %d %H%? %l%?".

title [windowtitle]

Set the name of the current window to windowtitle. If no name is specified, screen prompts for one. This command was known as `aka' in previous releases.

unsetenv var

Unset an environment variable.

utf8 [on|off [on|off]]

Change the encoding used in the current window. If utf8 is enabled, the strings sent to the window will be UTF-8 encoded and vice versa. Omitting the parameter toggles the setting. If a second parameter is given, the display's encoding is also changed (this should rather be done with screen's "-U" option). See also "defutf8", which changes the default setting of a new window.

vbell [on|off]

Sets the visual bell setting for this window. Omitting the parameter toggles the setting. If vbell is switched on, but your terminal does not support a visual bell, a vbell-message' is displayed in the status line when the bell character (^G) is received. Visual bell support of a terminal is defined by the termcap variable vb' (terminfo: 'flash'). Per default, vbell is off, thus the audible bell is used. See also `bell_msg'.

vbell_msg [message]

Sets the visual bell message. message is printed to the status line if the window receives a bell character (^G), vbell is set to "on", but the terminal does not support a visual bell. The default message is "Wuff, Wuff!!". Without parameter, the current message is shown.

vbellwait sec

Define a delay in seconds after each display of screen's visual bell message. The default is 1 second.

verbose [on|off]

If verbose is switched on, the command name is echoed, whenever a window is created (or resurrected from zombie state). Default is off. Without parameter, the current setting is shown.

version

Print the current version and the compile date in the status line.

wall message

Write a message to all displays. The message will appear in the terminal's status line.

width [-w|-d] [cols [lines]]

Toggle the window width between 80 and 132 columns or set it to cols columns if an argument is specified. This requires a capable terminal and the termcap entries "Z0" and "Z1". See the "termcap" command for more information. You can also specify a new height if you want to change both values. The -w option tells screen to leave the display size unchanged and just set the window size, -d vice versa.

windowlist [-b] [-m] windowlist string [string] windowlist title [title]

Display all windows in a table for visual window selection. The desired window can be selected via the standard movement keys (see the "copy" command) and activated via the return key. If the -b option is given, screen will switch to the blank window before presenting the list, so that the current window is also selectable. The -m option changes the order of the windows, instead of sorting by window numbers screen uses its internal most-recently-used list.

The table format can be changed with the string and title option, the title is displayed as table heading, while the lines are made by using the string setting. The default setting is "Num Name%=Flags" for the title and "%3n %t%=%f" for the lines. See the "STRING ESCAPES" chapter for more codes (e.g. color settings).

windows

Uses the message line to display a list of all the windows. Each window is listed by number with the name of process that has been started in the window (or its title); the current window is marked with a *'; the previous window is marked with a -'; all the windows that are "logged in" are marked with a $'; a background window that has received a bell is marked with a !'; a background window that is being monitored and has had activity occur is marked with an @'; a window which has output logging turned on is marked with (L)'; windows occupied by other users are marked with &'; windows in the zombie state are marked with Z'. If this list is too long to fit on the terminal's status line only the portion around the current window is displayed.

wrap [on|off]

Sets the line-wrap setting for the current window. When line-wrap is on, the second consecutive printable character output at the last column of a line will wrap to the start of the following line. As an added feature, backspace (^H) will also wrap through the left margin to the previous line. Default is `on'.

writebuf [-e encoding] [filename]

Writes the contents of the paste buffer to the specified file, or the public accessible screen-exchange file if no filename is given. This is thought of as a primitive means of communication between screen users on the same host. If an encoding is specified the paste buffer is recoded on the fly to match the encoding. The filename can be set with the bufferfile command and defaults to "/tmp/screen-exchange".

writelock [on|off|auto]

In addition to access control lists, not all users may be able to write to the same window at once. Per default, writelock is in `auto' mode and grants exclusive input permission to the user who is the first to switch to the particular window. When he leaves the window, other users may obtain the writelock (automatically). The writelock of the current window is disabled by the command "writelock off". If the user issues the command "writelock on" he keeps the exclusive write permission while switching to other windows.

xoff xon

Insert a CTRL-s / CTRL-q character to the stdin queue of the current window.

zmodem [off|auto|catch|pass] zmodem sendcmd [string] zmodem recvcmd [string]

Define zmodem support for screen. Screen understands two different modes when it detects a zmodem request: "pass" and "catch". If the mode is set to "pass", screen will relay all data to the attacher until the end of the transmission is reached. In "catch" mode screen acts as a zmodem endpoint and starts the corresponding rz/sz commands. If the mode is set to "auto", screen will use "catch" if the window is a tty (e.g. a serial line), otherwise it will use "pass". You can define the templates screen uses in "catch" mode via the second and the third form. Note also that this is an experimental feature.

zombie [keys] defzombie [keys]

Per default screen windows are removed from the window list as soon as the windows process (e.g. shell) exits. When a string of two keys is specified to the zombie command, `dead' windows will remain in the list. The kill command may be used to remove such a window. Pressing the first key in the dead window has the same effect. When pressing the second key, screen will attempt to resurrect the window. The process that was initially running in the window will be launched again. Calling zombie without parameters will clear the zombie setting, thus making windows disappear when their process exits.

As the zombie-setting is manipulated globally for all windows, this command should only be called defzombie. Until we need this as a per window setting, the commands zombie and defzombie are synonymous.

The Message Line

Screen displays informational messages and other diagnostics in a message line. While this line is distributed to appear at the bottom of the screen, it can be defined to appear at the top of the screen during compilation. If your terminal has a status line defined in its termcap, screen will use this for displaying its messages, otherwise a line of the current screen will be temporarily overwritten and output will be momentarily interrupted. The message line is automatically removed after a few seconds delay, but it can also be removed early (on terminals without a status line) by beginning to type.

The message line facility can be used by an application running in the current window by means of the ANSI Privacy message control sequence. For instance, from within the shell, try something like:

echo '^Hello world from window '$WINDOW'\'

where '' is an escape, '^' is a literal up-arrow, and '\' turns into a single backslash.

Window Types

Screen provides three different window types. New windows are created with screen's screen command (see also the entry in chapter "CUSTOMIZATION"). The first parameter to the screen command defines which type of window is created. The different window types are all special cases of the normal type. They have been added in order to allow screen to be used efficiently as a console multiplexer with 100 or more windows.

• The normal window contains a shell (default, if no parameter is given) or any other system command that could be executed from a shell (e.g. slogin, etc...)

• If a tty (character special device) name (e.g. "/dev/ttya") is specified as the first parameter, then the window is directly connected to this device. This window type is similar to "screen cu -l /dev/ttya". Read and write access is required on the device node, an exclusive open is attempted on the node to mark the connection line as busy. An optional parameter is allowed consisting of a comma separated list of flags in the notation used by stty(1):

Usually 300, 1200, 9600 or 19200. This affects transmission as well as receive speed.

cs8 or cs7 Specify the transmission of eight (or seven) bits per byte.

ixon or -ixon Enables (or disables) software flow-control (CTRL-S/CTRL-Q) for sending data.

ixoff or -ixon Enables (or disables) software flow-control for receiving data.

istrip or -istrip Clear (or keep) the eight bit in each received byte.

You may want to specify as many of these options as applicable. Unspecified options cause the terminal driver to make up the parameter values of the connection. These values are system dependant and may be in defaults or values saved from a previous connection.

For tty windows, the info command shows some of the modem control lines in the status line. These may include RTS', CTS', 'DTR', DSR', CD' and more. This depends on the available ioctl()'s and system header files as well as the on the physical capabilities of the serial board. Signals that are logical low (inactive) have their name preceded by an exclamation mark (!), otherwise the signal is logical high (active). Signals not supported by the hardware but available to the ioctl() interface are usually shown low. When the CLOCAL status bit is true, the whole set of modem signals is placed inside curly braces ({ and }). When the CRTSCTS or TIOCSOFTCAR bit is set, the signals CTS' or CD' are shown in parenthesis, respectively.

For tty windows, the command break causes the Data transmission line (TxD) to go low for a specified period of time. This is expected to be interpreted as break signal on the other side. No data is sent and no modem control line is changed when a break is issued.

• If the first parameter is "//telnet", the second parameter is expected to be a host name, and an optional third parameter may specify a TCP port number (default decimal 23). Screen will connect to a server listening on the remote host and use the telnet protocol to communicate with that server. For telnet windows, the command info shows details about the connection in square brackets ([ and ]) at the end of the status line.

b BINARY. The connection is in binary mode.

e ECHO. Local echo is disabled.

c SGA. The connection is in character mode' (default: line mode').

t TTYPE. The terminal type has been requested by the remote host. Screen sends the name "screen" unless instructed otherwise (see also the command `term').

w NAWS. The remote site is notified about window size changes.

f LFLOW. The remote host will send flow control information. (Ignored at the moment.)

Additional flags for debugging are x, t and n (XDISPLOC, TSPEED and NEWENV).

For telnet windows, the command break sends the telnet code IAC BREAK (decimal 243) to the remote host.

This window type is only available if screen was compiled with the BUILTIN_TELNET option defined.

String Escapes

Screen provides an escape mechanism to insert information like the current time into messages or file names. The escape character is '%' with one exception: inside of a window's hardstatus '^%' ('^E') is used instead.

Here is the full list of supported escapes:

% the escape character itself

a either 'am' or 'pm'

A either 'AM' or 'PM'

c current time HH:MM in 24h format

C current time HH:MM in 12h format

d day number

D weekday name

f flags of the window

F sets %? to true if the window has the focus

h hardstatus of the window

H hostname of the system

l current load of the system

m month number

M month name

n window number

s seconds

t window title

u all other users on this window

w all window numbers and names. With '-' quailifier: up to the current window; with '+' qualifier: starting with the window after the current one.

W all window numbers and names except the current one

y last two digits of the year number

Y full year number

? the part to the next '%?' is displayed only if a '%' escape inside the part expands to a non-empty string

: else part of '%?'

= pad the string to the display's width (like TeX's hfill). If a number is specified, pad to the percentage of the window's width. A '0' qualifier tells screen to treat the number as absolute position. You can specify to pad relative to the last absolute pad position by adding a '+' qualifier or to pad relative to the right margin by using '-'. The padding truncates the string if the specified position lies before the current position. Add the 'L' qualifier to change this.

< same as '%=' but just do truncation, do not fill with spaces

 mark the current text position for the next truncation. When screen needs to do

truncation, it tries to do it in a way that the marked position gets moved to the specified percentage of the output area. (The area starts from the last absolute pad position and ends with the position specified by the truncation operator.) The 'L' qualifier tells screen to mark the truncated parts with '...'.

{ attribute/color modifier string terminated by the next "}"

` Substitute with the output of a 'backtick' command. The length qualifier is misused to identify one of the commands.

The 'c' and 'C' escape may be qualified with a '0' to make screen use zero instead of space as fill character. The '0' qualifier also makes the '=' escape use absolute positions. The 'n' and '=' escapes understand a length qualifier (e.g. '%3n'), 'D' and 'M' can be prefixed with 'L' to generate long names, 'w' and 'W' also show the window flags if 'L' is given.

An attribute/color modifier is is used to change the attributes or the color settings. Its format is "[attribute modifier] [color description]". The attribute modifier must be prefixed by a change type indicator if it can be confused with a color desciption. The following change types are known:

  •  add the specified set to the current attributes
    
  •  remove the set from the current attributes
    

! invert the set in the current attributes

= change the current attributes to the specified set

The attribute set can either be specified as a hexadecimal number or a combination of the following letters:

d dim u underline b bold r reverse s standout B blinking

Colors are coded either as a hexadecimal number or two letters specifying the desired background and foreground color (in that order). The following colors are known:

k black r red g green y yellow b blue m magenta c cyan w white d default color . leave color unchanged

The capitalized versions of the letter specify bright colors. You can also use the pseudo- color 'i' to set just the brightness and leave the color unchanged. A one digit/letter color description is treated as foreground or background color dependant on the current attributes: if reverse mode is set, the background color is changed instead of the foreground color. If you don't like this, prefix the color with a ".". If you want the same behaviour for two-letter color descriptions, also prefix them with a ".". As a special case, "%{-}" restores the attributes and colors that were set before the last change was made (i.e. pops one level of the color-change stack).

Examples:

set color to bright green

use bold red

clear all attributes, write in default color on yellow background.

%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< The available windows centered at the current window and truncated to the available width. The current window is displayed white on blue. This can be used with "hardstatus alwayslastline".

%?%F%{.R.}%?%3n %t%? [%h]%? The window number and title and the window's hardstatus, if one is set. Also use a red background if this is the active focus. Useful for "caption string".

Flow-Control

Each window has a flow-control setting that determines how screen deals with the XON and XOFF characters (and perhaps the interrupt character). When flow-control is turned off, screen ignores the XON and XOFF characters, which allows the user to send them to the current program by simply typing them (useful for the emacs editor, for instance). The trade-off is that it will take longer for output from a "normal" program to pause in response to an XOFF. With flow-control turned on, XON and XOFF characters are used to immediately pause the output of the current window. You can still send these characters to the current program, but you must use the appropriate two-character screen commands (typically "C-a q" (xon) and "C-a s" (xoff)). The xon/xoff commands are also useful for typing C-s and C-q past a terminal that intercepts these characters.

Each window has an initial flow-control value set with either the -f option or the "defflow" .screenrc command. Per default the windows are set to automatic flow-switching. It can then be toggled between the three states 'fixed on', 'fixed off' and 'automatic' interactively with the "flow" command bound to "C-a f".

The automatic flow-switching mode deals with flow control using the TIOCPKT mode (like "rlogin" does). If the tty driver does not support TIOCPKT, screen tries to find out the right mode based on the current setting of the application keypad - when it is enabled, flow- control is turned off and visa versa. Of course, you can still manipulate flow-control manually when needed.

If you're running with flow-control enabled and find that pressing the interrupt key (usually C-c) does not interrupt the display until another 6-8 lines have scrolled by, try running screen with the "interrupt" option (add the "interrupt" flag to the "flow" command in your .screenrc, or use the -i command-line option). This causes the output that screen has accumulated from the interrupted program to be flushed. One disadvantage is that the virtual terminal's memory contains the non-flushed version of the output, which in rare cases can cause minor inaccuracies in the output. For example, if you switch screens and return, or update the screen with "C-a l" you would see the version of the output you would have gotten without "interrupt" being on. Also, you might need to turn off flow-control (or use auto- flow mode to turn it off automatically) when running a program that expects you to type the interrupt character as input, as it is possible to interrupt the output of the virtual terminal to your physical terminal when flow-control is enabled. If this happens, a simple refresh of the screen with "C-a l" will restore it. Give each mode a try, and use whichever mode you find more comfortable.

TITLES (naming windows) You can customize each window's name in the window display (viewed with the "windows" command (C-a w)) by setting it with one of the title commands. Normally the name displayed is the actual command name of the program created in the window. However, it is sometimes useful to distinguish various programs of the same name or to change the name on-the-fly to reflect the current state of the window.

The default name for all shell windows can be set with the "shelltitle" command in the .screenrc file, while all other windows are created with a "screen" command and thus can have their name set with the -t option. Interactively, there is the title-string escape-sequence (kname) and the "title" command (C-a A). The former can be output from an application to control the window's name under software control, and the latter will prompt for a name when typed. You can also bind pre-defined names to keys with the "title" command to set things quickly without prompting.

Finally, screen has a shell-specific heuristic that is enabled by setting the window's name to "search|name" and arranging to have a null title escape-sequence output as a part of your prompt. The search portion specifies an end-of-prompt search string, while the name portion specifies the default shell name for the window. If the name ends in a `:' screen will add what it believes to be the current command running in the window to the end of the window's shell name (e.g. "name:cmd"). Otherwise the current command name supersedes the shell name while it is running.

Here's how it works: you must modify your shell prompt to output a null title-escape- sequence (k) as a part of your prompt. The last part of your prompt must be the same as the string you specified for the search portion of the title. Once this is set up, screen will use the title-escape-sequence to clear the previous command name and get ready for the next command. Then, when a newline is received from the shell, a search is made for the end of the prompt. If found, it will grab the first word after the matched string and use it as the command name. If the command name begins with either '!', '%', or '^' screen will use the first word on the following line (if found) in preference to the just-found name. This helps csh users get better command names when using job control or history recall commands.

Here's some .screenrc examples:

screen -t top 2 nice top

Adding this line to your .screenrc would start a nice-d version of the "top" command in window 2 named "top" rather than "nice".

shelltitle '> |csh' screen 1

These commands would start a shell with the given shelltitle. The title specified is an auto-title that would expect the prompt and the typed command to look something like the following:

/usr/joe/src/dir> trn

(it looks after the '> ' for the command name). The window status would show the name "trn" while the command was running, and revert to "csh" upon completion.

bind R screen -t '% |root:' su

Having this command in your .screenrc would bind the key sequence "C-a R" to the "su" command and give it an auto-title name of "root:". For this auto-title to work, the screen could look something like this:

% !em emacs file.c

Here the user typed the csh history command "!em" which ran the previously entered "emacs" command. The window status would show "root:emacs" during the execution of the command, and revert to simply "root:" at its completion.

bind o title bind E title "" bind u title (unknown)

The first binding doesn't have any arguments, so it would prompt you for a title. when you type "C-a o". The second binding would clear an auto-title's current setting (C-a E). The third binding would set the current window's title to "(unknown)" (C-a u).

One thing to keep in mind when adding a null title-escape-sequence to your prompt is that some shells (like the csh) count all the non-control characters as part of the prompt's length. If these invisible characters aren't a multiple of 8 then backspacing over a tab will result in an incorrect display. One way to get around this is to use a prompt like this:

set prompt='^[[0000m^[k^[% '

The escape-sequence "[0000m" not only normalizes the character attributes, but all the zeros round the length of the invisible characters up to 8. Bash users will probably want to echo the escape sequence in the PROMPT_COMMAND:

PROMPT_COMMAND='echo -n -e "\033k\033\134"'

(I used "134" to output a `' because of a bug in bash v1.04).

The Virtual Terminal

Each window in a screen session emulates a VT100 terminal, with some extra functions added. The VT100 emulator is hard-coded, no other terminal types can be emulated. Usually screen tries to emulate as much of the VT100/ANSI standard as possible. But if your terminal lacks certain capabilities, the emulation may not be complete. In these cases screen has to tell the applications that some of the features are missing. This is no problem on machines using termcap, because screen can use the $TERMCAP variable to customize the standard screen termcap.

But if you do a rlogin on another machine or your machine supports only terminfo this method fails. Because of this, screen offers a way to deal with these cases. Here is how it works:

When screen tries to figure out a terminal name for itself, it first looks for an entry named "screen.", where is the contents of your $TERM variable. If no such entry exists, screen tries "screen" (or "screen-w" if the terminal is wide (132 cols or more)). If even this entry cannot be found, "vt100" is used as a substitute.

The idea is that if you have a terminal which doesn't support an important feature (e.g. delete char or clear to EOS) you can build a new termcap/terminfo entry for screen (named "screen.") in which this capability has been disabled. If this entry is installed on your machines you are able to do a rlogin and still keep the correct termcap/terminfo entry. The terminal name is put in the $TERM variable of all new windows. Screen also sets the $TERMCAP variable reflecting the capabilities of the virtual terminal emulated. Notice that, however, on machines using the terminfo database this variable has no effect. Furthermore, the variable $WINDOW is set to the window number of each window.

The actual set of capabilities supported by the virtual terminal depends on the capabilities supported by the physical terminal. If, for instance, the physical terminal does not support underscore mode, screen does not put the us' and ue' capabilities into the window's $TERMCAP variable, accordingly. However, a minimum number of capabilities must be supported by a terminal in order to run screen; namely scrolling, clear screen, and direct cursor addressing (in addition, screen does not run on hardcopy terminals or on terminals that over- strike).

Also, you can customize the $TERMCAP value used by screen by using the "termcap" .screenrc command, or by defining the variable $SCREENCAP prior to startup. When the is latter defined, its value will be copied verbatim into each window's $TERMCAP variable. This can either be the full terminal definition, or a filename where the terminal "screen" (and/or "screen-w") is defined.

Note that screen honors the "terminfo" .screenrc command if the system uses the terminfo database rather than termcap.

When the boolean G0' capability is present in the termcap entry for the terminal on which screen has been called, the terminal emulation of screen supports multiple character sets. This allows an application to make use of, for instance, the VT100 graphics character set or national character sets. The following control functions from ISO 2022 are supported: lock shift G0 (SI), lock shift G1 (SO), lock shift G2, lock shift G3, single shift G2, and single shift G3. When a virtual terminal is created or reset, the ASCII character set is designated as G0 through G3. When the G0' capability is present, screen evaluates the capabilities S0', E0', and C0' if present. S0' is the sequence the terminal uses to enable and start the graphics character set rather than SI. E0' is the corresponding replacement for SO. C0' gives a character by character translation string that is used during semi-graphics mode. This string is built like the `acsc' terminfo capability.

When the po' and pf' capabilities are present in the terminal's termcap entry, applications running in a screen window can send output to the printer port of the terminal. This allows a user to have an application in one window sending output to a printer connected to the terminal, while all other windows are still active (the printer port is enabled and disabled again for each chunk of output). As a side-effect, programs running in different windows can send output to the printer simultaneously. Data sent to the printer is not displayed in the window. The info command displays a line starting `PRIN' while the printer is active.

Screen maintains a hardstatus line for every window. If a window gets selected, the display's hardstatus will be updated to match the window's hardstatus line. If the display has no hardstatus the line will be displayed as a standard screen message. The hardstatus line can be changed with the ANSI Application Program Command (APC): "ESC_ESC". As a convenience for xterm users the sequence "ESC]0..2;^G" is also accepted.

Some capabilities are only put into the $TERMCAP variable of the virtual terminal if they can be efficiently implemented by the physical terminal. For instance, `dl' (delete line) is only put into the $TERMCAP variable if the terminal supports either delete line itself or scrolling regions. Note that this may provoke confusion, when the session is reattached on a different terminal, as the value of $TERMCAP cannot be modified by parent processes.

The "alternate screen" capability is not enabled by default. Set the altscreen .screenrc command to enable it.

The following is a list of control sequences recognized by screen. "(V)" and "(A)" indicate VT100-specific and ANSI- or ISO-specific functions, respectively.

ESC E Next Line

ESC D Index

ESC M Reverse Index

ESC H Horizontal Tab Set

ESC Z Send VT100 Identification String

ESC 7 (V) Save Cursor and Attributes

ESC 8 (V) Restore Cursor and Attributes

ESC [s (A) Save Cursor and Attributes

ESC [u (A) Restore Cursor and Attributes

ESC c Reset to Initial State

ESC g Visual Bell

ESC Pn p Cursor Visibility (97801)

Pn = 6 Invisible

7 Visible

ESC = (V) Application Keypad Mode

ESC > (V) Numeric Keypad Mode

ESC # 8 (V) Fill Screen with E's

ESC \ (A) String Terminator

ESC ^ (A) Privacy Message String (Message Line)

ESC ! Global Message String (Message Line)

ESC k A.k.a. Definition String

ESC P (A) Device Control String. Outputs a string directly to the host terminal without interpretation.

ESC _ (A) Application Program Command (Hardstatus)

ESC ] 0 ; string ^G (A) Operating System Command (Hardstatus, xterm title hack)

ESC ] 83 ; cmd ^G (A) Execute screen command. This only works if multi-user support is compiled into screen. The pseudo-user ":window:" is used to check the access control list. Use "addacl :window: -rwx #?" to create a user with no rights and allow only the needed commands.

Control-N (A) Lock Shift G1 (SO)

Control-O (A) Lock Shift G0 (SI)

ESC n (A) Lock Shift G2

ESC o (A) Lock Shift G3

ESC N (A) Single Shift G2

ESC O (A) Single Shift G3

ESC ( Pcs (A) Designate character set as G0

ESC ) Pcs (A) Designate character set as G1

ESC * Pcs (A) Designate character set as G2

ESC + Pcs (A) Designate character set as G3

ESC [ Pn ; Pn H Direct Cursor Addressing

ESC [ Pn ; Pn f same as above

ESC [ Pn J Erase in Display

Pn = None or 0 From Cursor to End of Screen

1 From Beginning of Screen to Cursor

2 Entire Screen

ESC [ Pn K Erase in Line

Pn = None or 0 From Cursor to End of Line

1 From Beginning of Line to Cursor

2 Entire Line

ESC [ Pn X Erase character

ESC [ Pn A Cursor Up

ESC [ Pn B Cursor Down

ESC [ Pn C Cursor Right

ESC [ Pn D Cursor Left

ESC [ Pn E Cursor next line

ESC [ Pn F Cursor previous line

ESC [ Pn G Cursor horizontal position

ESC [ Pn ` same as above

ESC [ Pn d Cursor vertical position

ESC [ Ps ;...; Ps m Select Graphic Rendition

Ps = None or 0 Default Rendition

1 Bold

2 (A) Faint

3 (A) Standout Mode (ANSI: Italicized)

4 Underlined

5 Blinking

7 Negative Image

22 (A) Normal Intensity

23 (A) Standout Mode off (ANSI: Italicized off)

24 (A) Not Underlined

25 (A) Not Blinking

27 (A) Positive Image

30 (A) Foreground Black

31 (A) Foreground Red

32 (A) Foreground Green

33 (A) Foreground Yellow

34 (A) Foreground Blue

35 (A) Foreground Magenta

36 (A) Foreground Cyan

37 (A) Foreground White

39 (A) Foreground Default

40 (A) Background Black

... ...

49 (A) Background Default

ESC [ Pn g Tab Clear

Pn = None or 0 Clear Tab at Current Position

3 Clear All Tabs

ESC [ Pn ; Pn r (V) Set Scrolling Region

ESC [ Pn I (A) Horizontal Tab

ESC [ Pn Z (A) Backward Tab

ESC [ Pn L (A) Insert Line

ESC [ Pn M (A) Delete Line

ESC [ Pn @ (A) Insert Character

ESC [ Pn P (A) Delete Character

ESC [ Pn S Scroll Scrolling Region Up

ESC [ Pn T Scroll Scrolling Region Down

ESC [ Pn ^ same as above

ESC [ Ps ;...; Ps h Set Mode

ESC [ Ps ;...; Ps l Reset Mode

Ps = 4 (A) Insert Mode

20 (A) Automatic Linefeed Mode

34 Normal Cursor Visibility

?1 (V) Application Cursor Keys

?3 (V) Change Terminal Width to 132 columns

?5 (V) Reverse Video

?6 (V) Origin Mode

?7 (V) Wrap Mode

?9 X10 mouse tracking

?25 (V) Visible Cursor

?47 Alternate Screen (old xterm code)

?1000 (V) VT200 mouse tracking

?1047 Alternate Screen (new xterm code)

?1049 Alternate Screen (new xterm code)

ESC [ 5 i (A) Start relay to printer (ANSI Media Copy)

ESC [ 4 i (A) Stop relay to printer (ANSI Media Copy)

ESC [ 8 ; Ph ; Pw t Resize the window to Ph' lines and Pw' columns (SunView special)

ESC [ c Send VT100 Identification String

ESC [ x Send Terminal Parameter Report

ESC [ > c Send VT220 Secondary Device Attributes String

ESC [ 6 n Send Cursor Position Report

Input Translation

In order to do a full VT100 emulation screen has to detect that a sequence of characters in the input stream was generated by a keypress on the user's keyboard and insert the VT100 style escape sequence. Screen has a very flexible way of doing this by making it possible to map arbitrary commands on arbitrary sequences of characters. For standard VT100 emulation the command will always insert a string in the input buffer of the window (see also command stuff in the command table). Because the sequences generated by a keypress can change after a reattach from a different terminal type, it is possible to bind commands to the termcap name of the keys. Screen will insert the correct binding after each reattach. See the bindkey command for further details on the syntax and examples.

Here is the table of the default key bindings. (A) means that the command is executed if the keyboard is switched into application mode.

Key name Termcap name Command


Cursor up ku stuff \033[A stuff \033OA (A) Cursor down kd stuff \033[B stuff \033OB (A) Cursor right kr stuff \033[C stuff \033OC (A) Cursor left kl stuff \033[D stuff \033OD (A) Function key 0 k0 stuff \033[10~ Function key 1 k1 stuff \033OP Function key 2 k2 stuff \033OQ Function key 3 k3 stuff \033OR Function key 4 k4 stuff \033OS Function key 5 k5 stuff \033[15~ Function key 6 k6 stuff \033[17~ Function key 7 k7 stuff \033[18~ Function key 8 k8 stuff \033[19~ Function key 9 k9 stuff \033[20~ Function key 10 k; stuff \033[21~ Function key 11 F1 stuff \033[23~ Function key 12 F2 stuff \033[24~ Home kh stuff \033[1~ End kH stuff \033[4~ Insert kI stuff \033[2~ Delete kD stuff \033[3~ Page up kP stuff \033[5~ Page down kN stuff \033[6~ Keypad 0 f0 stuff 0 stuff \033Op (A) Keypad 1 f1 stuff 1 stuff \033Oq (A) Keypad 2 f2 stuff 2 stuff \033Or (A) Keypad 3 f3 stuff 3 stuff \033Os (A) Keypad 4 f4 stuff 4 stuff \033Ot (A) Keypad 5 f5 stuff 5 stuff \033Ou (A) Keypad 6 f6 stuff 6 stuff \033Ov (A) Keypad 7 f7 stuff 7 stuff \033Ow (A) Keypad 8 f8 stuff 8 stuff \033Ox (A) Keypad 9 f9 stuff 9 stuff \033Oy (A) Keypad + f+ stuff + stuff \033Ok (A) Keypad - f- stuff - stuff \033Om (A) Keypad * f* stuff * stuff \033Oj (A) Keypad / f/ stuff / stuff \033Oo (A) Keypad = fq stuff = stuff \033OX (A) Keypad . f. stuff . stuff \033On (A) Keypad , f, stuff , stuff \033Ol (A) Keypad enter fe stuff \015 stuff \033OM (A)

Special Terminal Capabilities

The following table describes all terminal capabilities that are recognized by screen and are not in the termcap(5) manual. You can place these capabilities in your termcap entries (in /etc/termcap') or use them with the commands termcap', terminfo' and termcapinfo' in your screenrc files. It is often not possible to place these capabilities in the terminfo database.

LP (bool) Terminal has VT100 style margins (`magic margins'). Note that this capability is obsolete because screen uses the standard 'xn' instead.

Z0 (str) Change width to 132 columns.

Z1 (str) Change width to 80 columns.

WS (str) Resize display. This capability has the desired width and height as arguments. SunView(tm) example: '\E[8;%d;%dt'.

NF (bool) Terminal doesn't need flow control. Send ^S and ^Q direct to the application. Same as 'flow off'. The opposite of this capability is 'nx'.

G0 (bool) Terminal can deal with ISO 2022 font selection sequences.

S0 (str) Switch charset 'G0' to the specified charset. Default is '\E(%.'.

E0 (str) Switch charset 'G0' back to standard charset. Default is '\E(B'.

C0 (str) Use the string as a conversion table for font '0'. See the 'ac' capability for more details.

CS (str) Switch cursor-keys to application mode.

CE (str) Switch cursor-keys back to normal mode.

AN (bool) Turn on autonuke. See the 'autonuke' command for more details.

OL (num) Set the output buffer limit. See the 'obuflimit' command for more details.

KJ (str) Set the encoding of the terminal. See the 'encoding' command for valid encodings.

AF (str) Change character foreground color in an ANSI conform way. This capability will almost always be set to '\E[3%dm' ('\E[3%p1%dm' on terminfo machines).

AB (str) Same as 'AF', but change background color.

AX (bool) Does understand ANSI set default fg/bg color (\E[39m / \E[49m).

XC (str) Describe a translation of characters to strings depending on the current font. More details follow in the next section.

XT (bool) Terminal understands special xterm sequences (OSC, mouse tracking).

C8 (bool) Terminal needs bold to display high-intensity colors (e.g. Eterm).

TF (bool) Add missing capabilities to the termcap/info entry. (Set by default).

Character Translation

Screen has a powerful mechanism to translate characters to arbitrary strings depending on the current font and terminal type. Use this feature if you want to work with a common standard character set (say ISO8851-latin1) even on terminals that scatter the more unusual characters over several national language font pages.

Syntax: XC={,,} :=