Coder Social home page Coder Social logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Of course subject should be VT100 line drawing!

Original comment by [email protected] on 23 Nov 2009 at 7:04

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Don't try to play with the page's character encoding. ShellInABox already 
reports the 
correct character encoding to the browser and it makes sure to output 
everything in 
Unicode. If you manually override the character encoding in the browser, it 
either 
doesn't do anything, or really strange things will happen.

ShellInABox understands UTF-8, so the best way to output non-ASCII characters 
is by 
making your application encode them in UTF-8.

But if that is not an option, you can always send the appropriate escape codes 
to 
disable UTF-8 mode and to pick the code page that you want. In your case, that 
would be 
IBM437.

Try running this command prior to running your application:

  echo -ne '\033%@\033(U'

Original comment by [email protected] on 23 Nov 2009 at 8:18

  • Changed title: VT100 line drawing using IBM437 characters
  • Changed state: WontFix

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
The echo escape sequence works on my CentOS virtual when I cat the mcc.log.

Thank you for the very prompt reply.

I will try the app in the office tomorrow.

Original comment by [email protected] on 23 Nov 2009 at 8:42

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I have deleted the attachments. Thanks again.

Original comment by [email protected] on 23 Nov 2009 at 8:43

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
We have tried the app tonight using the escape sequences. All OK so far.

How difficult would it be to add the 132 col support including switching back 
and forth?

Original comment by [email protected] on 23 Nov 2009 at 12:04

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
This is not entirely trivial to do, as most modern browsers don't applications 
to 
arbitrarily resize windows anymore.

And within standard HTML, there also is no easy way to request a font that is 
guaranteed to have a particular dimension.

But when using a WebKit based browser (e.g. Chrome or Safari), we have access 
to CSS 
transforms which allow us to scale arbitrary web content. I believe, on any of 
those 
browsers I could "squish" the font when switching from 80 to 132 column mode. 
It'll 
require a few more changes throughout the code, but I'll see what I can do when 
I 
have a little time to experiment.

Original comment by [email protected] on 23 Nov 2009 at 6:57

  • Changed title: Add 80/132 column mode
  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Fixed in subversion.

Original comment by [email protected] on 26 Nov 2009 at 12:19

  • Changed state: Fixed

from shellinabox.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Thanks. I am testing using ncurses demos and vttest. I will give a summary in 
the next few days.

Original comment by [email protected] on 26 Nov 2009 at 10:21

from shellinabox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.