Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 226947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:33:28+00:00 2026-05-11T19:33:28+00:00

I want to build an application with a text based UI that is similar

  • 0

I want to build an application with a text based UI that is similar to the Linux command ‘top’, in Ruby. What toolkits and/or techniques can I use to build the UI? In particular I want an area of the console window that is constantly updating, and the ability to press keys to manipulate the display.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:33:28+00:00Added an answer on May 11, 2026 at 7:33 pm

    Ncurses is great for console apps and you can find bindings for it for lots of languages (or just use shell scripting). There’s even a cursed gtk (http://zemljanka.sourceforge.net/cursed/) though I think work on it stopped quite awhile back.

    You didn’t mention your platform, but for OS/X there’s a great little app called Geektool (http://projects.tynsoe.org/en/geektool/) which allows you to put script output on your desktop. I use a small ruby script to generate my top processes list:

    puts %x{uptime}
    
    IO.popen("ps aruxl") { |readme|
        pslist = readme.to_a
        pslist.shift # remove header line
        pslist.each_with_index { |i,index|
          ps = i.split
          psh = { user: ps[0], pid: ps[1], pcpu: ps[2], pmem: ps[3],
                  vsz: ps[4], rss: ps[5], tty: ps[6], stat: ps[7],
                  time: ps[8], uid: ps[9], ppid: ps[10], cpu: ps[11], pri: ps[12], 
                  nice: ps[13], wchan: ps[14], cmd: ps[16..ps.size].join(" ") }
          printf("%-6s %-6s %-6s %s", "PID:", "%CPU:", "%Mem", "Command\n") if index == 0
          printf("%-6d %-6.1f %-6.1f %s\n", 
            psh[:pid].to_i, psh[:pcpu].to_f, psh[:pmem].to_f, psh[:cmd]) if index < 10
    
        }
    
    }
    

    (This could probably be better, but it was the first ruby script I ever wrote and since it works I’ve never revisited it to improve it – and it doesn’t take input. Anyway, it might help give you some ideas)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build a very simple GUI based application in linux, c++. Which
I want to build an application, in which text boxes can take urdu language.
i want to build an application on Android platform that will convert text to
I want to build an application using Quicktime ActiveX interop that could run on
I want to build an application that exports user data of another app. The
I want to build a Facebook application that will be available only to those
I want to build a web application where users can register and have a
I want to build an notepad-style application on android that will have syntax highlighting.
Hi everyone i want build a poem application so i want use to NavigationControlle
I want to build a sample application where you can preview HTML code. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.