Comments (3)
This is not problem of ruby curses bindings, using chars like that is more complicated in ncurses in general
Try something like that:
win.attron(Curses::A_ALTCHARSET)
win.box(120, 113)
win.attroff(Curses::A_ALTCHARSET)
win.refresh
Keyword: Ncurses extended characters :)
There should be constants from original ncurses library embedded into ruby curses bindings, but currently there arent any :(
from curses.
The following C program also doesn't work with ncurses.
#include <ncurses.h>
int main()
{
initscr();
WINDOW *win = newwin(9, 40, 5, 20);
mvwaddstr(win, 4, 15, "Hit ay key");
box(win, 0x2502, 0x2500);
touchwin(win);
wrefresh(win);
getchar();
endwin();
return 0;
}
Do you have any version of curses whose box() supports Unicode?
from curses.
@sh7d Thanks for your comment.
I close this issue because it's not an issue of Ruby bindings.
from curses.
Related Issues (20)
- Curses.newterm is absent HOT 4
- Pass ansi color codes straight through to a curses window? HOT 2
- Compatibility with Ruby 2.7 on Windows HOT 3
- Documentation is incomplete
- Curses::addch doesn't support attributes HOT 2
- Support for chgat?
- Not Displaying Wide Characters HOT 2
- Curses versus Ncurses confusion HOT 2
- Are some files missing on the .gem release? HOT 2
- Encoding issues HOT 1
- Curses.get_char fails on multibyte characters HOT 2
- sample/color.rb error HOT 15
- error: unknown warning option '-Wno-cast-function-type'; did you mean '-Wno-bad-function-cast'? [-Werror,-Wunknown-warning-option]
- Gem document is incomplete and lack of examples.
- Use NUM2CHTYPE()/CHTYPE2NUM() in window_attron/attroff/attrset/color_pair?
- gem installation warning: "Couldn't find file to include xyz" HOT 1
- 256 colours support in ncurses?
- I think there is an error in https://github.com/ruby/curses/blob/master/sample/form.rb HOT 1
- NCURSES_EXT_COLORS - see python HOT 2
- uninitialized constant Curses::Menu (NameError) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curses.