21
edits
Changes
→Blog Posts
=Help=
==Help Needed==
<!-- Thanks Omkar, that was all I needed to understand how past this test.
* Omkar Parmar
Re : Amir, after previous test, without pressing any key it will display like this
+--------------------------------------------------------------------+
|Test 4.17: console.edit() initial corrections, Offset: The offset is|
|set to 10 that is invalid and it should be corrected to 5. The |
|function should terminate returning 0. |
+--------------------------------------------------------------------+
+--------------------+
| |
+--------------------+
PASSED, hit any key to continue
* Re: Jessica, My question is what is the instruction for test 4.17, but thank you for replying.
* Re: Amir.
Amir, Try to re-download the cio_test.cpp from git and re-compile it again. I had some problem with you. It works fine after I re-upload the text.cpp file. I do not know what happened. - Jessica Park
* Re: Omkar.
Return value of edit is correct. How we should act in test 4.17? pressing arrow keys?
* Student: '''Omkar Parmar'''
'''Amir''' Check return value of edit function
* My program fails at the following test. Anyone knowswhy should it returns Unkown keycode? How it should be handled then! - Amir
+--------------------------------------------------------------------+
|Test 4.17: console.edit() initial corrections, Offset: The offset is|
|set to 10 that is invalid and it should be corrected to 5. The |
|function should terminate returning 0. |
+--------------------------------------------------------------------+
+--------------------+
| |
+--------------------+
- console.edit() was supposed to return Unknown Keycode, Dec: 0 Hex: 0
but instead it returned: ENTER, Dec: 10 Hex: A
FAILED, hit any key to continue
*"My program is working completely fine in window but when I am trying to testing it on matrix it gives same error as below."- Tejas Patel
To Omkar Parmar: "Write [export TERM="linux"] then try it again"-Tejas Patel
* Student :Omkar Parmar
'''HOME,END F1, F2, F3, F4, F5''' keys are not working while testing linux.
HOME,END are return Unknown key and
F1 A
F2 B
F3 C
F4 D
F5 E.
* After copying cio_test.o, it has changed MY NAME and R.01 to "CIO TESTER PROGRAM" and "R0.93". I can assume what happened it, but I just wonder it is ok? - Rody Choi <==I think that's it. cio_test.o cannot be edited. I guess cio_test.cpp is submitted as well. - Linpei Fan ===> I guess so. Thanks, Lily - Rody Choi
*When running on matrix, whenever I press Home, End, or Insert, the program exits rather than run the code I wrote. It works fine on Visual Studio however. I complied with -lncurses. - Ronny Wan <-- Check Notes section on this page and follow "Using Linux..." instruction even for Windows version of Putty - Hiroshi Takemoto
<===Try to compile it in a Linux OS, such as Fedora, using VM. It will be fine. - Linpei Fan ===> *HOME and END key work on VS2010, but not work on matrix. Someone can help me? -->
==Blog Posts==
<!-- *Ok, I did something with the display function. It's not 1 line but it's different from the code that's online and it has less loops. I sincerely hope it's not what was shown in class today, though, lol. I could be just writing remembered code which would be funny. Sad. But funny. Blog: [http://ashtramwasser.blogspot.ca/ ashtramwasser1]
* Questions about terminating the process of editing by pressing '''ENTER''', '''TAB''', '''ESCAPE''', '''UP''', '''DOWN'''.... and what your program doing after pressing '''ESCAPE''' were not clear for me, so I decided to ask Fardad, here the answers.Blog: [http://stanislavatseneca.blogspot.ca/ stanislavatseneca]
* Here's a post of my troubleshooting issues with compiling the code on OSX. It covers both the terminal c++ compiler and Xcode. [http://gambitkun.blogspot.ca/2012/10/working-with-console-part-2-mac.html mgauer]
** hi guys i would like to know ho you solved these two questions?
in the first one the test ask:
PrnTextBox(1, 5, 70, 8, "Test 4.2: console.edit() initial corrections, Offset: The offset is set to 10 that is invalid and it should be corrected to 5. "//////////
"HIT ENTER ONLY to test!");
in the second test the same question is asked:
PrnTextBox(1, 5, 70, 8, "Test 4.17: console.edit() initial corrections, Offset: The offset is set to 10 that is invalid and it should be corrected to 5. " //////////
"The function should terminate returning 0.");
but how am i going to return 0 and at the same time set the offset to 10. I do not understand those two questions. -->
=Learning Outcome=
Local Mac: (use -lcurses to link curses library)
c++ bconsole.cpp console.cpp cio_test.cpp -lcurses-Wno-write-strings
matrix: GNU (use -lncurses to link ncurses library)
g++ bconsole.cpp console.cpp cio_test.cpp -lncurses-Wno-write-strings
For submission purposes, your solution must compile, link, and run without errors in each environment.
==Tester Demo==
To see how tester runs, you can run on Matrix (only use putty with the setting stated at [[#Notes|Notes]]) run:
<big><pre>
$ ~fardad.soleimanloo/cio_test
</pre></big>
==Submission details==