Changeset e40ec257 in mainline


Ignore:
Timestamp:
2009-04-16T11:39:05Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c0a841
Parents:
c33e36b
Message:

don't forget to flush the console after the application finishes
(yes, this is not very elegant, but until we have a proper stdin/stdout/stderr, the whole console stuff, buffering, etc. is just a big heap of hacks)

Location:
uspace/lib/libc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/console.c

    rc33e36b re40ec257  
    239239}
    240240
     241void console_flush_optional(void)
     242{
     243        if (console_phone >= 0)
     244                console_flush();
     245}
     246
    241247int console_get_size(int *rows, int *cols)
    242248{
  • uspace/lib/libc/generic/libc.c

    rc33e36b re40ec257  
    4949#include <async.h>
    5050#include <as.h>
     51#include <console.h>
    5152#include <loader/pcb.h>
    5253
     
    8485
    8586        main(argc, argv);
     87        console_flush_optional();
    8688}
    8789
  • uspace/lib/libc/include/console.h

    rc33e36b re40ec257  
    5353extern void console_putstr(const char *s);
    5454extern void console_flush(void);
     55extern void console_flush_optional(void);
    5556
    5657extern int console_get_size(int *, int *);
Note: See TracChangeset for help on using the changeset viewer.