Skip to content

Commit 470c90d

Browse files
committed
You no longer have to press Enter
1 parent d8009ee commit 470c90d

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# NShell Changelog
22

3+
## Build 4
4+
5+
- You no longer have to press Enter to exit the application.
6+
37
## Build 3
48

59
- Okay, now version and exit do something.

NShell.depend

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# depslib dependency file v1.0
2+
1681378820 source:d:\nicos code\shell\nshell\nshell\main.cpp
3+
<iostream>
4+
<limits>
5+

NShell.layout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
22
<CodeBlocks_layout_file>
33
<FileVersion major="1" minor="0" />
4-
<ActiveTarget name="Debug" />
4+
<ActiveTarget name="Release" />
55
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
66
<Cursor>
7-
<Cursor1 position="95" topLine="0" />
7+
<Cursor1 position="58" topLine="0" />
88
</Cursor>
99
</File>
1010
</CodeBlocks_layout_file>

main.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <iostream>
2-
#include <limits>
32

4-
int buildNr = 3;
3+
int buildNr = 4;
54

65
int main()
76
{
@@ -19,7 +18,6 @@ int main()
1918
}
2019

2120
else if (command_to_run == "exit") {
22-
std::cout << "Goodbye. Please press Enter to exit the application." << '\n';
2321
break;
2422
}
2523

@@ -28,9 +26,5 @@ int main()
2826
}
2927
}
3028

31-
std::cin.clear();
32-
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
33-
std::cin.get();
34-
3529
return 0;
3630
}

0 commit comments

Comments
 (0)