473,782 Members | 2,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Curses-style text interface within browser?

Many applications require a high-speed interface such as supermarket
checkouts, busy points of sale, doctors' surgeries etc. The problem
with graphical interfaces is that they are too slow for this kind of
environment. Imagine a web interface at the supermarket checkout -
just not viable.

Would it be possible to build a text-based interface *within* a normal
browser window - like curses? Keypresses would be interpreted by
javascript and cause changes in a curses box. I think there has
already been some work on connecting javascript and curses
http://spiderape.sourceforge.net/plugins/ncurses/ but is a curses
style interface really possible?

A text-based interface would allow all those point-of-sale
applications to become web-applications.

Cheers,
Z.
Jul 24 '08 #1
4 4869
On Jul 24, 6:11*pm, Zoubidoo <Stanc...@gmail .comwrote:
Many applications require a high-speed interface such as supermarket
checkouts, busy points of sale, doctors' surgeries etc. *The problem
with graphical interfaces is that they are too slow for this kind of
environment. *Imagine a web interface at the supermarket checkout -
just not viable.

<snip>

A text-based interface would allow all those point-of-sale
applications to become web-applications.
Actually, a lot of newer POS systems have moved away from keyboards to
purely graphical touch screens. Like the POS systems used by Pizza Hut
and Starbucks for example. Such interfaces are perfectly doable as a
web interface. But even when you can't use touch screens, you can
still use keypress events to trigger actions - just clearly label the
on-screen buttons so that the user knows what key to press to activate
what button.
Jul 24 '08 #2
On Jul 24, 3:30*pm, slebetman <slebet...@gmai l.comwrote:
On Jul 24, 6:11*pm, Zoubidoo <Stanc...@gmail .comwrote:
Many applications require a high-speed interface such as supermarket
checkouts, busy points of sale, doctors' surgeries etc. *The problem
with graphical interfaces is that they are too slow for this kind of
environment. *Imagine a web interface at the supermarket checkout -
just not viable.
<snip>
A text-based interface would allow all those point-of-sale
applications to become web-applications.

Actually, a lot of newer POS systems have moved away from keyboards to
purely graphical touch screens. Like the POS systems used by Pizza Hut
and Starbucks for example.
That's true.
Such interfaces are perfectly doable as a
web interface. But even when you can't use touch screens, you can
still use keypress events to trigger actions - just clearly label the
on-screen buttons so that the user knows what key to press to activate
what button.
Do you know of any web-based examples?

I'm hitting sites like this http://www.merchantos.com/merchantos_com_demo.php
which would be totally unworkable for busy environments.

I still think curses would be helpful.
Jul 24 '08 #3
On Jul 24, 3:11 am, Zoubidoo <Stanc...@gmail .comwrote:
Many applications require a high-speed interface such as supermarket
checkouts, busy points of sale, doctors' surgeries etc. The problem
with graphical interfaces is that they are too slow for this kind of
environment. Imagine a web interface at the supermarket checkout -
just not viable.

Would it be possible to build a text-based interface *within* a normal
browser window - like curses?
Vi in the browser is an indication something curses-like can probably
be built.

http://gpl.internetconnection.net/vi/

Peter
Jul 24 '08 #4
On Jul 24, 10:00 pm, Zoubidoo <Stanc...@gmail .comwrote:
On Jul 24, 3:30 pm, slebetman <slebet...@gmai l.comwrote:
On Jul 24, 6:11 pm, Zoubidoo <Stanc...@gmail .comwrote:
Many applications require a high-speed interface such as supermarket
checkouts, busy points of sale, doctors' surgeries etc. The problem
with graphical interfaces is that they are too slow for this kind of
environment. Imagine a web interface at the supermarket checkout -
just not viable.
<snip>
A text-based interface would allow all those point-of-sale
applications to become web-applications.
Actually, a lot of newer POS systems have moved away from keyboards to
purely graphical touch screens. Like the POS systems used by Pizza Hut
and Starbucks for example.

That's true.
Such interfaces are perfectly doable as a
web interface. But even when you can't use touch screens, you can
still use keypress events to trigger actions - just clearly label the
on-screen buttons so that the user knows what key to press to activate
what button.

Do you know of any web-based examples?

I'm hitting sites like thishttp://www.merchantos. com/merchantos_com_ demo.php
which would be totally unworkable for busy environments.
I just had a look at merchantOs and found it to be quite fast -- once
you have all the images loaded. Also, I found that a lot of actions
trigger full screen refresh. For big actions like inventory queries
that may be acceptable but for small and common actions like entering
items or committing a transaction could be done with ajax to avoid
full screen refresh. If you do decide to go with a web based solution
for high throughput POS here's my suggestions:

1. Don't use images (the one exception is the store/company logo if
necessary). Instead go old-school with the layout/design and implement
it using large buttons/divs. This is a POS system after all, remind
the customer that the web app is not trying to be the next flickr or
facebook or yahoo. Emulate curses interfaces without emulating curses
itself which would be terribly slow and have much higher overhead than
plain and simple html.
2. This is a POS system so presumably you have full control what
browser the client will use to run it. So there's no excuse not to use
AJAX, especially for smaller transactions. The difference between
local DOM manipulation and full page refresh can be in the range of a
couple hundred milliseconds. Normally for a web app this is acceptable
but in your environment the difference would be noticeable.
3. If you are brave & competent enough implement smaller calculations
like totals in javascript on the front end to minimise communication
with the server.
4. It may not be worth implementing this as a web app. The only places
I've seen graphical POS being successfull are restaurants - which are
inherently not high-throughput. Supermarkets tend to stick to text
based HP, Siemens or IBM terminals for the reason you stated: high-
throughput sites need high speed POS.
Jul 25 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1691
by: J Turner | last post by:
Hello, I'm playing with a python-based shell, which uses (guess what?) python as it's scripting language, for iterative invocation, environment variables, etc. Everything was going well, until I moved beyond sys.readline() into curses territory to flesh out the line-editing capabilities. Curses always seems to get me.
1
4373
by: Edmond Ho | last post by:
Hi, I'm having trouble with a small curses program. I'm associate a pad with a panel. As I understand, a pad is supposed to be just a window with an arbitrary size. That seems to imply that a pad can be treated like a normal window when working with panels. I have this code: #!/usr/bin/env python import curses import curses.panel
1
3295
by: Riccardo Galli | last post by:
Hi, I'm writing some widgets in curses. Actually I'm trying to write a combobox. To do so, I need to create a pad inside a panel, so that I can hide/show it. I can't do it. I can create a normal pad, but if I try to create it using "subpad" from a window I get _curses_panel.error: curses function returned NULL
0
1775
by: Matthew Alton | last post by:
The appended program freaks python 2.2 & 2.3 completely out. To reproduce the wierdness: i) copy the source to a file called consarn.py ii) $ python consarn.py; iii) the program is now doing a getch(); iv) hit a key; v) the program locks up, the interptreter is now munching on the CPU; vi) kill the interpreter from another shell; vii) scratch head and wonder why neither of the mutually exclusive clauses in the _io() member function...
0
1877
by: Matt Garman | last post by:
I'd like to write a class or module in python that allows me to do on-the-fly color changing in the curses module. I'm thinking about something along the lines of this: addstr(y, x, 'hello', brightyellow, blue) The module would automatically interpret the above as curses.init_pair(i, curses.COLOR_YELLOW, curses.COLOR_BLUE)
4
4126
by: schwerdy | last post by:
Hi together, can someone provide an example of a curses application that works in a xterm that can be resized? I could not find any working example yet... Thanks in advance, Sebastian 'Schwerdy' Schwerdhöfer
0
1037
by: mike.baranski | last post by:
So, can someone tell me why the following code is wrong? When you run it, it will place a . as you arrow key around the screen. Everything works, until you get to the bottom right corner of the screen, trying to move off of this square causes addstr to throw and exception. Every other spot works. Any idea why? Thanks:
1
3697
by: Jerry Fleming | last post by:
Hi, I have wrote a game with python curses. The problem is that I want to confirm before quitting, while my implementation doesn't seem to work. Anyone can help me? #!/usr/bin/python # # Brick & Ball in Python # by Jerry Fleming <jerryfleming@etang.com>
3
4872
by: Simon Morgan | last post by:
Hi, I'm having trouble with the following code. The problem is that the value read by getch() when I hit the up or down keys doesn't match curses.KEY_UP or curses.KEY_DOWN respectively. Other keys, such as 'z' in my example code, work fine. I only seem to have this problem when dealing with newly created windows and not with the standard/default/root one created by curses.wrapper() and passed to main().
0
1270
by: skip | last post by:
Environment: Solaris 10, Python 2.4.2. I'm trying to convert a very simple (display-wise) program to use curses. This is my first try at using curses. I have wrapped my main: try: sys.exit(curses.wrapper(main, *sys.argv)) except (KeyboardInterrupt, SystemExit): sys.exit(0)
0
9479
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.