×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Qt For the Console

Unknown Lamer posted more than 2 years ago | from the x11-is-for-wimps dept.

Graphics 34

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.

cancel ×
This is a preview of your comment

No Comment Title Entered

Anonymous Coward 1 minute ago

No Comment Entered

34 comments

Fool me once ... (1)

Anonymous Coward | more than 2 years ago | (#36813794)

Fool me once, shame on you.

Fool me twice, shame on me.

Re:Fool me once ... (0)

Anonymous Coward | more than 2 years ago | (#36813878)

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

Re:Fool me once ... (0)

Anonymous Coward | more than 2 years ago | (#36813982)

AIDs? kdawson, is that you??

Re:Fool me once ... (1)

hal2814 (725639) | more than 2 years ago | (#36815272)

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

Re:Fool me once ... (2)

E IS mC(Square) (721736) | more than 2 years ago | (#36814088)

You said it wrong.

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

Re:Fool me once ... (0)

Anonymous Coward | more than 2 years ago | (#36816372)

*removes shades*.... yyyyyyeeeeeeaaaaaahhhhhhhhhh

Looks like.. (0)

Anonymous Coward | more than 2 years ago | (#36813876)

.. the Slashdot effect.

Deja Vu! (0)

Anonymous Coward | more than 2 years ago | (#36813952)

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 :/

Re:Deja Vu! (1)

Samantha Wright (1324923) | more than 2 years ago | (#36814210)

Interesting, related story from about the same era: Visual Basic 1 [wikipedia.org] was released by Microsoft as a way of migrating customers from QBasic-based solutions towards true Windows VB. It used the DOS-437 [wikipedia.org] 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.

April Fools (1)

hedwards (940851) | more than 2 years ago | (#36813984)

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

Re:April Fools (1)

scorp1us (235526) | more than 2 years ago | (#36814532)

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.

Pah, GTK+ did it first. (1)

ThoughtMonster (1602047) | more than 2 years ago | (#36814324)

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

Re:Pah, GTK+ did it first. (1)

scorp1us (235526) | more than 2 years ago | (#36814656)

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.

Re:Pah, GTK+ did it first. (1)

AvitarX (172628) | more than 2 years ago | (#36814874)

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

Re:Pah, GTK+ did it first. (1)

gl4ss (559668) | more than 2 years ago | (#36815246)

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.

Re:Pah, GTK+ did it first. (0)

Anonymous Coward | more than 2 years ago | (#36830994)

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?

Re:Pah, GTK+ did it first. (0)

Anonymous Coward | more than 2 years ago | (#36839626)

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).

Seriously, this isn't news (0)

Anonymous Coward | more than 2 years ago | (#36814384)

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.

Qt is dead (-1)

Anonymous Coward | more than 2 years ago | (#36814458)

Anonymous coward employed by Nokia. Qt as you knew it is dead. What is left is just pretending to be Qt.

Re:Qt is dead (0)

Anonymous Coward | more than 2 years ago | (#36816022)

... troll alert!

Re:Qt is dead (1)

ChunderDownunder (709234) | more than 2 years ago | (#36817120)

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.

Blog down, the article (0)

Anonymous Coward | more than 2 years ago | (#36814766)

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

What is Lighthouse? (2)

inglorion_on_the_net (1965514) | more than 2 years ago | (#36814952)

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 [gitorious.org]. Was, because it has now been integrated with Qt 4.8, according to the page at that link.

Re:What is Lighthouse? (0)

Anonymous Coward | more than 2 years ago | (#36815036)

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/

Bad choice for a name... (-1)

Anonymous Coward | more than 2 years ago | (#36816230)

Caca means Shit
(in Spanish)

Re:Bad choice for a name... (1)

petteyg359 (1847514) | more than 2 years ago | (#36816692)

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.

XBox or PS3? (2)

keith_nt4 (612247) | more than 2 years ago | (#36818124)

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

Re:XBox or PS3? (0)

Anonymous Coward | more than 2 years ago | (#36822368)

Pretty sure it's for virtual console.

Re:XBox or PS3? (1)

DaVince21 (1342819) | more than 2 years ago | (#36824422)

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.

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Sign up for Slashdot Newsletters
Create a Slashdot Account

Loading...