Slashdot Mirror


Qt For the Console

An anonymous reader writes "Girish Ramakrishnan has written a Lighthouse plugin that lets one run Qt applications on the console. Old timers would recall the April Fool's story. Except it's for real this time." It's more of a neat hack than anything since it doesn't support things like mouse events yet.

34 comments

  1. Fool me once ... by Anonymous Coward · · Score: 1

    Fool me once, shame on you.

    Fool me twice, shame on me.

    1. Re:Fool me once ... by Anonymous Coward · · Score: 0

      Fool me three times baby, once for tomorrow, twice cause I got AIDs.

    2. Re:Fool me once ... by Anonymous Coward · · Score: 0

      AIDs? kdawson, is that you??

    3. Re:Fool me once ... by E+IS+mC(Square) · · Score: 2

      You said it wrong.

      Correct version:
      "Fool me once, shame on - shame on you. Fool me - you can't get fooled again."

    4. Re:Fool me once ... by hal2814 · · Score: 1

      Pretty good Jim Morrison impression there. I hope those guys have a good sense of humor and don't take us into court.

    5. Re:Fool me once ... by Anonymous Coward · · Score: 0

      *removes shades*.... yyyyyyeeeeeeaaaaaahhhhhhhhhh

    6. Re:Fool me once ... by beelsebob · · Score: 1

      You've got arrays of independent drives?

  2. Looks like.. by Anonymous Coward · · Score: 0

    .. the Slashdot effect.

  3. Slashdotted by RavenChild · · Score: 5, Informative

    Here's a video from the website showing tile animations.
    http://www.youtube.com/watch?v=ZJyF99uqSbY

    And here's the code:
    https://qt.gitorious.org/~girish/qt/caca-lighthouse

    1. Re:Slashdotted by Anonymous Coward · · Score: 0
  4. Deja Vu! by Anonymous Coward · · Score: 0

    Reminds me emulation library which you could link MS-Windows 2.x code and was then able to run on console without graphics. I can't remember the name any more of that library, but it was quite neat. We tried it but did not really use it anything but testing. Downloaded it from compuserve ...

    Darn, makes me feel old when I realized I'ts already about 25 years ago :/

    1. Re:Deja Vu! by Samantha+Wright · · Score: 1

      Interesting, related story from about the same era: Visual Basic 1 was released by Microsoft as a way of migrating customers from QBasic-based solutions towards true Windows VB. It used the DOS-437 character set to provide a rather fetching mouse-driven console-based GUI, but could also run pure QBasic programs. Its code was also forward-compatible with VB2 and later.

      --
      Bio questions? Ask me to start a Q&A journal. Computer analogies available for most topics!
  5. April Fools by hedwards · · Score: 1

    Clearly this April Fools joke was botched be slashdot's failure to be nearly 10 months behind.

    1. Re:April Fools by scorp1us · · Score: 1

      Actually it is for real. The Light House project is Qt's magnum opus of platform independence. It is how Qt can target Android, iPhone and desktop in one fell swoop. Really, all this needs is a QPainter that maps to colors and ASCII.

      I think Qt is the most underrated technology out there. Probably because it is C++, and not many people care to use C++ these days.

      --
      Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    2. Re:April Fools by KiloByte · · Score: 1

      Except, GTK had this for ages already.

      --
      The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
  6. Pah, GTK+ did it first. by ThoughtMonster · · Score: 1

    With Cursed GTK. Archive.org doesn't seem to have the screenshots, so here's a screenshot found on a random site.

    1. Re:Pah, GTK+ did it first. by ThoughtMonster · · Score: 1

      Actually, here they are:

      1, 2, 3, 4, 5, 6

    2. Re:Pah, GTK+ did it first. by scorp1us · · Score: 1

      Completely different. What you are looking at in TFA is a graphical GUI rendered as text.
      What you are showing is a re-parsing of the dialogs into ncurses. You could do the same thing in Qt, you'd just need to instantiate your TUI from parsing the XML .ui files.

      And VBDOS did it first.

      --
      Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    3. Re:Pah, GTK+ did it first. by AvitarX · · Score: 1

      True that, the Cursed GTK looks useful, and is what I expected.

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    4. Re:Pah, GTK+ did it first. by gl4ss · · Score: 1

      the qt thing in this article(the video) looks like it's just the thing pushed through aalib, which it pretty much seems to be. **The cool thing though is that now Qt renders to QImage in the main ui thread and hands it off to caca. Caca opens a X connection (or similar), converts the image into text, displays a window and handles events in another thread. With some refactoring and thanks to QMetaObject::invokeMethod, the threaded and non-threaded rendering are pretty much the same and can be switched using an environment variable (THREADED_CACA=1).**

      so for once, the gtk version is more useful.

      --
      world was created 5 seconds before this post as it is.
    5. Re:Pah, GTK+ did it first. by Anonymous Coward · · Score: 0

      Exactly. Cursed GTK *would* be useful; I'm surprised it exists, but a) isn't included in GTK; and b) isn't used more.

      Rendering Qt bitmaps through AALib? Who cares?

    6. Re:Pah, GTK+ did it first. by Anonymous Coward · · Score: 0

      I would love to have (what appear to be) fully functional dialogs over a terminal for all of my config applications in Ubuntu. Yes, i know there's a command line equivalent, and yes, I often know it, but it makes sense to me to offer it over Web (with the web back-end demoed a while ago), Terminal, and GUI all at once with no need to change anything.

      This is the type of thing I would expect from the usage of many small tools in UNIX, and it looks like all the pieces are there, just not integrated for some reason (probably because I didn't do it blah blah).

  7. Seriously, this isn't news by Anonymous Coward · · Score: 0

    I've been compiling command-line only apps with Qt for years. This story should mention that a GUI-like operation is now supported in a terminal. That's the story here.

  8. Blog down, the article by Anonymous Coward · · Score: 0

    Slashdotted.

    Link to cache - http://webcache.googleusercontent.com/search?q=cache:mS8ldxBU-gIJ:blog.forwardbias.in/2011/07/qtcaca-lighthouse-plugin.html+http://blog.forwardbias.in/2011/07/qtcaca-lighthouse-plugin.html&cd=1&hl=en&ct=clnk&source=www.google.com

  9. What is Lighthouse? by inglorion_on_the_net · · Score: 2

    For those not in the know, which included me a few minutes ago, Lighthouse was apparently a research project aimed to make Qt easier to port to different graphics systems. Was, because it has now been integrated with Qt 4.8, according to the page at that link.

    --
    Please correct me if I got my facts wrong.
    1. Re:What is Lighthouse? by Anonymous Coward · · Score: 0

      An excellent explanation of the lighthouse project is at http://labs.qt.nokia.com/2009/10/02/introducing-new-port-of-qt-to-your-favourite-platform/. For more articles: http://labs.qt.nokia.com/category/labs/lighthouse/

  10. Re:Qt is dead by Anonymous Coward · · Score: 0

    ... troll alert!

  11. Re:Bad choice for a name... by petteyg359 · · Score: 1

    There are languages long gone, and there will likely be "new" languages in the future. Over an infinite period of time, every word in this post will mean shit at some point.

  12. Re:Qt is dead by ChunderDownunder · · Score: 1

    well it is baffling that nokia would buy trolltech, endorse it as the new API for Symbian and then provide no upgrade path to WP7. Porting lighthouse to MS' phone platform would seem a reasonable value-add if Elop's hands weren't tied.

  13. XBox or PS3? by keith_nt4 · · Score: 2

    Finally Qt on consoles. Doesn't which one though *scratches head*

    --
    "UNIX is very simple, it just needs a genius to understand its simplicity." -Dennis Ritchie
    1. Re:XBox or PS3? by Anonymous Coward · · Score: 0

      Pretty sure it's for virtual console.

    2. Re:XBox or PS3? by DaVince21 · · Score: 1

      The console, ie. the terminal. You know, a text console that Linux provides by default if you don't install any form of X server.

      --
      I am not devoid of humor.