Kaydet (Commit) de51be5d authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

xterm icin script getirildi. lazım olur ilerde

üst 1695be28
# -*- coding: utf-8 -*-
# Copyright (C) 2006, TUBITAK/UEKAE
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
# Please read the COPYING file.
import sys
import os
def set_title(message):
"""Set message as console window title."""
if "TERM" in os.environ and sys.stderr.isatty():
terminalType = os.environ["TERM"]
for term in ["xterm", "Eterm", "aterm", "rxvt", "screen", "kterm", "rxvt-unicode"]:
if terminalType.startswith(term):
def reset_title():
"""Reset console window title."""
if "TERM" in os.environ:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment