473,396 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 4838
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...@gmail.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...@gmail.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
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,...
1
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...
1
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...
0
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...
0
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',...
4
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...
0
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...
1
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 # #...
3
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...
0
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:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.