Skip to content

Commit

Permalink
[CMD][CONUTILS] Move the generic console-input code into CONUTILS.
Browse files Browse the repository at this point in the history
CORE-13860

- All the code that deals with reading in an asynchronous way console
  input data is now moved to conutils/instream.c, and proper interfaces
  are written around it. This allows possible reusage in other
  command-line programs.
- The code in cmd/console.c just wraps around these conutils interfaces.
- Remove old dead code in conutils/instream.c.
- Move code that retrieves console information into conutils/screen.c,
  function ConGetScreenInfo() which now works for both Win32 consoles and
  TTYs, and adjust the calls to this function.
  • Loading branch information
HBelusca committed Mar 30, 2018
1 parent ccc24ae commit 912d825
Show file tree
Hide file tree
Showing 8 changed files with 1,035 additions and 779 deletions.
786 changes: 15 additions & 771 deletions base/shell/cmd/console.c

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdk/lib/conutils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

list(APPEND SOURCE
# instream.c
instream.c
outstream.c
pager.c
screen.c
Expand All @@ -13,4 +13,4 @@ add_library(conutils ${SOURCE})
# add_pch(conutils conutils.h SOURCE)
add_dependencies(conutils xdk)
target_link_libraries(conutils ${PSEH_LIB})
add_importlibs(conutils msvcrt kernel32)
add_importlibs(conutils msvcrt kernel32 user32)
2 changes: 1 addition & 1 deletion sdk/lib/conutils/conutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include "utils.h"
#include "stream.h"
// #include "instream.h"
#include "instream.h"
#include "outstream.h"
#include "screen.h"
#include "pager.h"
Expand Down
Loading

0 comments on commit 912d825

Please sign in to comment.