Skip to content

Commit

Permalink
Remove WIN32 remnant.
Browse files Browse the repository at this point in the history
  • Loading branch information
stolk committed May 13, 2021
1 parent 9726cf8 commit 8d1998c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Press ESCAPE or Q to exit diskgraph.
* Does not work on older linux kernels.
* Missing manual page.
* Assumes 512 byte sectors.
* Uses a lot of bandwidth when used over network, due to frequent screen-redraws. To mitigate: use small term size.

## Copyright

Expand Down
4 changes: 0 additions & 4 deletions diskgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,13 @@ int main( int argc, char* argv[] )
int done = 0;
while ( !done )
{
#ifdef _WIN32
get_terminal_size();
#else
if ( resized )
{
printf(CLEARSCREEN);
get_terminal_size();
setup_image();
resized = 0;
}
#endif

char c;
const int numr = read( STDIN_FILENO, &c, 1 );
Expand Down

0 comments on commit 8d1998c

Please sign in to comment.