Writing Programs with Ncurses
21–30 of 93 posts
Re: Writing Programs with Ncurses
#22Earlier quoted context omitted.
Wanted to hear this. This had been my experience too. But no one on the net seem to talk about it. It was always "we are stuck with mainframe due to politics..." But this isn't about mainframe vs Java. I have a feeling it's about Terminal user interface vs GUI. A modern terminal app, will be just as much fast as those old mainframe apps, is my feeling.
Mainframes do have a more sensible way to build a TUI than something like curses. A 3270 TUI is very similar to using html forms. The fields are named, have attributes, validation, and a so on. The mainframe sends the form, the user interacts with the form, and nothing is sent back to the server until either a field validation is needed or the "Enter" key is pressed. More detail: http://bitsavers.trailing-edge.com/pd…
Re: Writing Programs with Ncurses
#23Earlier quoted context omitted.
Wanted to hear this. This had been my experience too. But no one on the net seem to talk about it. It was always "we are stuck with mainframe due to politics..." But this isn't about mainframe vs Java. I have a feeling it's about Terminal user interface vs GUI. A modern terminal app, will be just as much fast as those old mainframe apps, is my feeling.
Mainframes do have a more sensible way to build a TUI than something like curses. A 3270 TUI is very similar to using html forms. The fields are named, have attributes, validation, and a so on. The mainframe sends the form, the user interacts with the form, and nothing is sent back to the server until either a field validation is needed or the "Enter" key is pressed. More detail: http://bitsavers.trailing-edge.com/pd…
Re: Writing Programs with Ncurses
#24Re: Writing Programs with Ncurses
#25Re: Writing Programs with Ncurses
#26Re: Writing Programs with Ncurses
#27Earlier quoted context omitted.
Mainframes do have a more sensible way to build a TUI than something like curses. A 3270 TUI is very similar to using html forms. The fields are named, have attributes, validation, and a so on. The mainframe sends the form, the user interacts with the form, and nothing is sent back to the server until either a field validation is needed or the "Enter" key is pressed. More detail: http://bitsavers.trailing-edge.com/pd…
That approach is good enough for simple forms ala HTML, but it's not effective for the sorts of full-featured TUI's with character-based graphics, drop-down menus, widgets, panes/windows etc. that are expected nowadays. Even writing a simple interactive text editor would be problematic using that model.
Or a video, skip forward to about 8:00 https://higherlogicdownload.s3.amazonaws.com/IMWUC/UploadedI...
Re: Writing Programs with Ncurses
#28https://kannel.org/download/1.4.5/userguide-1.4.5/userguide....
Re: Writing Programs with Ncurses
#29I can't access the site... Access Denied - Sucuri Website Firewall Block reason: Access from your Country was disabled by the administrator. In case someone else experience the same and wants an alternate link: http://web.archive.org/web/20210531163620/https://invisible-...
I don't know why that WAF is in front of it, but there seems to be an intentionally maintained mirror that doesn't have the Securi headers: https://invisible-mirror.net/ So, the mirrored copy of this article would be: https://invisible-mirror.net/ncurses/ncurses-intro.html
Thanks for that mirror, I occasionally use the lynx web browser that is also hosted there and being blocked has always been a problem.
Re: Writing Programs with Ncurses
#30Earlier quoted context omitted.
Wanted to hear this. This had been my experience too. But no one on the net seem to talk about it. It was always "we are stuck with mainframe due to politics..." But this isn't about mainframe vs Java. I have a feeling it's about Terminal user interface vs GUI. A modern terminal app, will be just as much fast as those old mainframe apps, is my feeling.
I don't think it is exactly TUI vs GUI, but more keyboard-first vs mouse-first, i.e. how you interact with it. Granted, Desktop GUI are usually developed mouse-first, but it doesn't have to be that way: if you take windows 98 / windows 2000, you could get everything done more efficiently with a keyboard than with a mouse. Just think about the difference between an app developed specifically for the desktop (mouse) or…
Plus responsiveness. Terminal apps have faster response time than GUIs. And when someone is typing like 10 chars per seconds it matters.
The usecase is different between terminal vs GUI. Where in GUI you look - choose - decide and click. And in terminal you blindly storm on the keyboard as fast as you can.