Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Bugs and Feature Requests

Help
2010-07-17
2012-07-13
  • Marko Čičak
    Marko Čičak
    2010-07-17

    I have one problem. Here's the code I've been working with:

    import jcurses.system.CharColor;
    import jcurses.widgets.*;
    public class Main
    {
        public static void main(String[] args) throws Exception
        {    
            Window w = new Window(40, 20, true, "Hello World Window");
            DefaultLayoutManager mgr = new DefaultLayoutManager();
            mgr.bindToContainer(w.getRootPanel());
            mgr.addWidget(
                new Label("Hello World!", new CharColor(CharColor.WHITE, CharColor.GREEN)),
                0, 0, 40, 20,
                WidgetsConstants.ALIGNMENT_CENTER,
                WidgetsConstants.ALIGNMENT_CENTER);
            w.show();
            Thread.currentThread().sleep(5000);
            w.close(); // reset the native console
        }
    }
    

    and when I run it under Linux Terminal in GNOME i get something like this:

    ┌──────────Hello World Window──────────┐
                                           
                                           
                                           
                                           
                                           
                                           
                                           
                                           
                                           
                  Hello World!             
                                           
                                           
                                           
                                           
                                           
                                           
                                           
                                           
    └──────────────────────────────────────┘
    

    which is OK. But when I go to fullscreen mode with Ctrl+Alt+F1 and then run
    the application, I get this:

    +----------Hello World Window----------+
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |              Hello World!            | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    |                                      | 
    +--------------------------------------+
    

    Question: Is there a way to print the box drawing characters in fullcreen mode?

    Note: When running pure ncurses application it DOES show box drawing chars in
    fullscreen mode.

    Thanks.