Results 1 to 2 of 2

Thread: RCXTerm - a wrapper over XTerm that makes it change colors

  1. #1
    Join Date
    Feb 2008
    Beans
    189

    RCXTerm - a wrapper over XTerm that makes it change colors

    Here is a short Python program I wrote. To run it, copy the source code below into a file, name it rcxterm, and make it executable ($ chmod +x rcxterm works for this), and run it. You can edit the second and third lines of text to change the available colors and the font size.

    Code:
    #!/usr/bin/python
    
    
    available_colors = ["magenta","yellow", "white", "green", "cyan", "orange", "purple"]
    fontsize = 20
    
    import random
    import os
    
    color = random.choice(available_colors)
    font = "-*-courier 10 pitch-*-r-*-*-" + str(fontsize) + "-*-*-*-*-*-*-*"
    
    command = 'xterm -font \"' + font + '\" -bg black' + ' -fg ' + color
    
    os.system(command)
    It's called RCXTerm, short for Random Colored X Terminal. It arose out of my inability to choose a text color for my terminal. I then wrote this to randomly choose a color for me each time I open it.
    Looking for a Terminal Emulator that's fun to use? Try out this program I wrote!

  2. #2
    Join Date
    Feb 2008
    Beans
    189

    Re: RCXTerm - a wrapper over XTerm that makes it change colors

    bump
    Looking for a Terminal Emulator that's fun to use? Try out this program I wrote!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •