Slashdot Mirror


GTK+ TTY Port

An anonymous reader writes: "FootNotes is reporting about what might be the coolest thing since textmode Quake: a curses-based GTK-2.0 port called Cursed GTK. This not only makes it possible to give Gnome the look and feel of Contiki, but also brings many real opportunities, such as remote logins where X forwarding is not possible, or remote logins over very slow modem lines. Screenshots here, here, here and here! Patches for bugs are welcomed by the authors."

35 of 277 comments (clear)

  1. But? by Anonymous Coward · · Score: 5, Funny

    How I'm supposed to run gimp with this thing?

    1. Re:But? by DashEvil · · Score: 5, Interesting

      Yeah, that's a really good question, actually. Not just for GIMP though, but how HARD is it to compile any GTK2 app with this? I'm very interested in it. A lot of the trolls are sitting here bashing it as useless, but they don't realize the fundamental power that comes with flexability; the ability to use any GTK2 program ( which is a lot ) at the console through ssh is a great benefit.

      --
      -If God wanted people to be better than me, he would have made them that way.
    2. Re:But? by Wolfrider · · Score: 4, Informative

      --Ever heard of aalib?

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
  2. april fools? by DarkAurora · · Score: 5, Interesting

    Wasn't a similar thing with Qt an April fools joke a few months back?

    1. Re:april fools? by Turmio · · Score: 4, Funny

      Actually yes there was: http://qtconsole.nl.linux.org/. Pretty amusing thing. I wonder if this wicked mind got inspiration from that joke.

  3. Forgot by brokencomputer · · Score: 5, Insightful

    You forgot to mention how great this will be for slow computers with low ram. I can't wait to try this out on my P1!

  4. Wow. by schon · · Score: 5, Funny

    Wow.

    Here I was thinking that it was utterly impossible to make the GTK file dialogue worse than it already was.

    Zemljanka, I bow before you in humility!

    1. Re:Wow. by JohnFluxx · · Score: 3, Funny

      I know they were trying to make gtk faster, but this is ridiculous!

    2. Re:Wow. by schon · · Score: 4, Insightful

      What is wrong with the GTK file selector dialog?

      It's a pain in the ass to navigate between frequently used folders.

      It supports tab completion. I don't know about you, but I like that I can traverse long directory with just a few keystrokes a few more , etc.

      Yes, but for long directories that I use frequently, even "a few keystrokes" is too much. Try KDE3's file dialog - ONE mouse click takes me to my any of my most-used directories.

      Tab completion is OK, but it assumes that I already have both hands on the keyboard - which (after using something like Gimp is a very, very bad assumption) Try editing 100+ photos, from a read-only folder, and save the resulting images in a different folder, nested 8 or 9 levels deep. It's needlessly time consuming with GTK.

      The Windows file selector looks pretty, but that's about it

      Who said anything about Windows?

      Try KDE's file dialog. Get used to it - add some quicklinks. Then try to use GTK+, and you'll see how clunky it is.

  5. Okay but by Rosco+P.+Coltrane · · Score: 4, Interesting

    I realize this is all about geekiness factor, but how do they handle these :

    - Widget alignments when whatever widgets you align don't fall exactly on their equivalent ascii places?

    - GDK pixmaps : do they use AAlib to render them?

    Alright, I'm off to recompile X-Chat. If it actually turns out good in ascii, nobody will be able to give me crap on IRC because I don't use 1337 BitchX :-)

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
    1. Re:Okay but by multi+io · · Score: 4, Informative
      GDK pixmaps

      Judging from the screenshots, those just don't get rendered at all. Generally, the mapping algorithm to character cells seems to be quite smart though...

    2. Re:Okay but by uhoreg · · Score: 4, Informative
      Widget alignments when whatever widgets you align don't fall exactly on their equivalent ascii places?
      GTK uses a container model for widget placements (i.e. you put the widgets in containers, and everything gets auto-sized based on the contents). The placement of widgets isn't pixel-based. So this isn't an issue, at least in properly written GTK programs.
      Alright, I'm off to recompile X-Chat.
      Cursed GTK uses LD_PRELOAD, so there's no recompilation needed. Unless the program is statically linked, of course.
      --

      To get something done, a committee should consist of no more than three persons, two of them absent.

  6. Finally! by phraktyl · · Score: 4, Funny

    I won't have to bring up X to edit photos in the Gimp!

    --
    Karma: Marginal (mostly due to the border around the website)
    1. Re:Finally! by Rosco+P.+Coltrane · · Score: 4, Funny

      I won't have to bring up X to edit photos in the Gimp!

      Even better : use a TTS with that and you've got gimp for the blind :

      Tool-Eraser-Star-Transparency-Minus-Minus-Minus- Pl us-Minus-Minus-Minus-PipeSign-ColorRed-ColorRed-Co lorRed-ColorRed-ColorRed-ColorRed-ColorRed-ColorRe d...

      --
      "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
  7. Turbo Pascal by khrtt · · Score: 3, Interesting

    The screenshots look awful like the good old Turbo Pascal (circa 1990 or so) text-mode GUI library. Which was a fine library, at least IMHO. However, does the word, ahem, "creative" mean anything anymore?

  8. Shameless Plug by Jennifer+E.+Elaan · · Score: 3, Interesting
    Ooh, more TTY stuff. I love stuff that runs on a TTY. aalib rocks. I have mplayer set up for movies, I have the original port for Quake 1... I run links for webbrowsing. I use centericq for my chat.

    Even better, I wrote aavga2 to run Quake2 on aalib!

    Now that Gtk+ is moving to TTY as well, maybe I can get rid of X entirely? *grin*

  9. A similar technology: 1986 WordPerfect on VAX/VMS by unfortunateson · · Score: 4, Informative

    Back in the minicomputer days, WordPerfect corporation created a reasonable port of WP onto the VAX/VMS environment. It supported a number of terminals, many of which were text-only.

    Mind you, this was in the days of DOS WordPerfect dominance, WPWin was relatively new.

    But the coolest thing was graphics mode for non-graphics terminals. They abused the font download capabilities of the VT220-series terminals that were the standard for the day to create 'mosaics'. Decent pictures of bitmaps could be created. I could recognize B&W bitmaps pretty well. Lousy for pr0n, but good enough that a letter-writing system we set up had recognizable signatures.

    --
    Design for Use, not Construction!
  10. Charva does the same for Java by llouver · · Score: 5, Informative

    For a character base port of javax/swing...

    see charva: http://www.pitman.co.za/projects/charva/
    screenshot: http://www.pitman.co.za/projects/charva/images/cha rva1.png

  11. Hello! by Anonymous Coward · · Score: 5, Funny

    1992 called, and they want their GUI back!

  12. Because non CLI text interfaces are useful. by hey! · · Score: 4, Informative

    Well, for the hack value I suppose.

    However, the utility of non-command oriented text interfaces is pretty well established. There is, of course, the venerable curses; pretty sophisticated non command text interfaces were the norm on MS-DOS in the pre-windows days. These often featured mouse input, which combined with text display is enough for a wide variety of applications. Don't know if this GTK supports mouse inputs. From the screenshots I'd guess not which somewhat limits its utility.

    As an example of a non-command oriented text interface in common use today, look no farther than your BIOS setup program.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  13. Re:Why go back to the CLI by zakezuke · · Score: 3, Interesting

    Why, except for a pathetic fetish for obsolete technology, would you want to use a text-based interface to your X-Server?

    If you are stuck with 56k, I can see this being very handy, very very handy! While yes we have faster then dialup connections, they are not all available from everywhere. Also, if you are with an ISP that bills based on byte use, I can see this as being most excelent.

    Also... if you are stuck in the Windows world, Xservers can be damn costly. Starnet for example charges $245 for their X-server. I assume since it can operate via TTY that it can also operate via ssh/telnet.

    Lastly, the more complex you make the plumbing, the easier it is to stuff up the drain. One thing nice about pathetic obsolete terminals is the fact that they work, they always work. The server may go down, but you know full well that ye' old terminal isn't very likely to fail. They don't need upgrades, patches, and in them selves can't get a worm/virus.

    --
    There is no sanctuary. There is no sanctuary. SHUT UP! There is no shut up. There is no shut up.
  14. Wonderful by AntEater · · Score: 5, Funny

    Now I can have a text mode file dialog that loses my default file name too.

    --
    Alex, I'll take keybindings not used by Emacs for $400....
  15. for all the non-believers by spir0 · · Score: 3, Insightful

    this will make system maintenance across ssh so much easier for chumps who don't know how to use CLI commands.

    hell, even I'd use it :)

    --
    The reason girls and Windows users don't understand UNIX is because all the documentation is in Man files.
  16. Eye Candy by femto · · Score: 5, Insightful
    Those screen shots actually look quite usable. (Well, no worse than the original versions of 'Turbo C'.)

    It's interesting that once the flashy grapics is stripped away, today's user interface looks (and functions?) basically the same as yesterdays. Perhaps much of what we call 'advances in user interface' is just eye candy, or am I being deceived by appearances?

    1. Re:Eye Candy by swillden · · Score: 4, Insightful

      Or, maybe not all of the advances to UI tech is visual? There's much more to interfaces than what you see. The rules behind where you put things amd being able to exploit the objectiveness of widgets to create new ones are two of the most advanced ideas of ui technology in my opinion.

      Google for TurboVision, the UI toolset Borland created in the process of building their text-based IDEs. One of the nicest, most object-oriented UI toolkits I've used... and a very nice tool for creating applications quickly. I think Borland released it as public domain, or under a permissive license, so you can find the source code on the net in quite a few places.

      The complete C++ toolkit source is around 250KB, zipped.

      Also, i18n, l10n, and section 508 concepts are making their way into interface design more and more, that's not necessarily a visual upgrade.

      TurboVision had great support for internationalization as well. Granted, it was really only workable for languages that used a latin character set, but that was more of a platform limitation.

      So, I'd say the other poster had it right: Most of the changes have been eye candy. Not that there's anything wrong with eye candy, I like my nice proportional, anti-aliased fonts and my pretty icons and rounded "lickable" controls, but, at bottom, the desktop metaphor hasn't changed much in the last 30 years.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    2. Re:Eye Candy by starseeker · · Score: 4, Informative

      TurboVision has apparently been somewhat modernized from the original source release. Here's the website:

      http://tvision.sourceforge.net/

      --
      "I object to doing things that computers can do." -- Olin Shivers, lispers.org
  17. Re:Textmode GUIs not all that new by samjam · · Score: 4, Insightful

    What is cool here is NOT the text mode as such, but that programs tht were written for graphical GTK are running fine with the text gtk libs!

    NOT as the original developers intended, but works none-the-less.

    THAT is cool.

    Sam

  18. very cool by Atilla · · Score: 4, Interesting

    this is very handy, alhough I wonder how well it scales beyond 25x80...

    this could also be very useful as a standalone X-less toolkit (a la Qt Embedded). RedHat (and some other distros) could really use a cleaner console widget toolkit... The one they use now (for system tools, etc) works like crap.

    OTOH, I wonder what kind of resources it uses.

    hmmm might have to try this out.

    --
    --- sig moved for great justice.
  19. Not useful without developers testing it by romi · · Score: 3, Insightful

    This isn't going to be of much use unless app developers of common gtk apps actually test it - it may work fine for the Gtk demo app but (speaking from experience as a developer at a mid-size company that ships a GTK UI) real GTK apps often abuse GTK to get around window manager incompatibilities, resize and widget placement restrictions, etc., and developers, OSS or otherwise, aren't going to verify that their crazy hacks actually work on the TTY port. This is exactly why the Windows GTK port sucks in real life even though in theory it should work just like GTK on X.

  20. TurboVision by AT · · Score: 3, Interesting

    It was called TurboVision. A user-maintained fork still exists and has been ported to various platforms and compilers including gcc and Linux.

    Its key difference from the text-based GTK+ is that it was a text-based library only. There was no graphical implementation of the same API.

  21. Gnome Foot by Enucite · · Score: 5, Funny

    _
    OOO( )
    O ---,
    ( /
    \ L/)
    ---

    or maybe something a little simpler, like:

    G

  22. You only think that's a joke. by twitter · · Score: 4, Insightful
    I won't have to bring up X to edit photos in the Gimp! Even better : use a TTS with that and you've got gimp for the blind :

    Considering the fact that the interface is all text, TTS would be nice for blind people. On X start up, depending on what XDM is used, you would get something like, "My box, login, name, password, Using every normal program, email client (Balsa), web browser (Galleon) would all be much easier, especially with tool tips enabled. Compare that to Microsoft's Accesability options! Rock on GNOME!

    --

    Friends don't help friends install M$ junk.

  23. Re:well, by Rysc · · Score: 3, Insightful

    The GTK file dialog is bad for several reasons.

    Number one, shortcut navigation buttons do not exist. Typing ~/ only might take me to my home directory, it also might select the current directory (this seems to vary). A button would go a long way. An extra button for /tmp would not go amiss.

    A related problem is that the "location" pulldown does not allow typing. I must type full paths rather than modifying existing ones. Yes I could use relative paths in the input box, but this is hardly intuitive for the majority and often not convenient.

    While I'm at it, there's no guarantee of a way to create a new directory while browsing with a GTK dialog. I don't care how it's done, but this is a useful feature. Some GTK file dialogs have it... some just don't.

    The text-labeled buttons you describe are ugly.

    I cannot view file size or meta information inline. It's annoying to pop up a terminal for this purpose.

    Most of the time the file dialog is not resizable, confining me to a tiny viewable area.

    I cannot sort the viewable area by different things. I can only sometimes successfully use shell-style patterns to liit the file listing.

    It might be nice if I could drag and drop files to move them into subdirecories.

    These problems should all be solved at the toolkit level. Some GNOME developers have said that they are waiting for a toolkit solution.

    A lot about the GTK dialogs makes sense, like tab completion (even though this technically breaks a function that is considered "normal" throughout the windows/macintosh (and now KDE) worlds). You just can't call it good. It's passably functional at best.

    --
    I want my Cowboyneal
  24. Font AA? by Chupa · · Score: 3, Funny

    Yeah, but can I get font antialiasing with that? :)

  25. Perspective and help. by twitter · · Score: 3, Interesting
    I do lots of photo work on my machines and free software kicks ass. The problems you have is the use of the wrong tool for the job. The GTK open file dialog is made for simple file retrieval. What you are doing is batch work. Getting around that problem is easy. You describe your beef this way:

    It has no method to quickly navigate directories. Depending on what I'm editing (print-quality photos, web graphics, the family album, etc) I'd like to quickly switch between directories. Now, what happens: I load Gimp, open the file dialog, navigate to my images directory (slow, even with command-completion), then load the image. After editing, I want to save the resulting image to another folder, so I then go back to the file dialoge, and do the same damn thing again.

    First, use multiple instances of your programs and real file browsers to drag and drop. This is the easiest step of all. Run multiple coppies of GIMP, each from a shell in the directory you want to work. This way, the dialog box will be defaulted to where you want to be. Next, use the drag and drop capabilities of GMC, Nautulis or KDE's file browser. If you try to use bookmarks, you will quickly be overwhelmed by too many of them. Depending on what window manager you are using, one or more of these should work. SSH X11 forwarding currenly works to move clipboard contents accross different computers on a network, I'll bet it can or will soon be able to drag and drop files the same way. How's that for spanning directories fast? Use multiple file viewers, of course, for place keeping as well as multiple versions spawns of GIMP.

    Next, try more appropriate programs for viewing and batch manipulation. Eye of Gnome and Gqview are excellent programs for viewing and moving multiple files. For batch manipulation, use Image Magic's convert utility. It's a front end to lower level utilities that resample, rotate, convert file types and more. "man convert" is informative and contains examples of usefull stuff. Use igal to make quicky web pages. Between that and a simple shell script to feed multiple directories, your days of waiting for dialogs are over. You won't get around the time your computer takes to manipulate the images, but you will save loads of clicky clicky GIMP time.

    Right rotates are a typical example. I use gqview to select and move all picutes that need to be rotated right and left to seperate directories. The CTRL key selections also work in gqview's thumbnail screen. Selecting them is as easy as looking hoding the ctrl key and a mouse button. Moving them is as eay as right clicking the mouse, selecting "move" from the pulldown menu and creating the new directory withing the directory you are in. You did remember to start gqview from a shell in the directory with pictures to manipulate? That way the right directory will always be the default. Next I run the following script to rotate all those pictures:

    count=1
    while [ -n "$*" ]
    do
    convert -rotate 90 $1 $1
    shift
    count=`expr $count + 1`
    done

    I named it "rr" issuing ~/home/me/bin/rr dir_1 dir_2 dir_3 does the directories. Other common convert commands can be substituted for each and every batch job you may have.

    A similar script can be used to call igal for many directories and thus generate thumbnails, an index and an html page for eveery photo in every directory listed.

    Happy editing and don't try the above in windoze!

    --

    Friends don't help friends install M$ junk.