Skip to content
Sign upLog in
Profile icon

Jacob Argenta

@kmcrae
Repls
Community
kmcrae
kmcrae
shared a Post
4 years ago
Change color of console error messages
In the classroom, I often view my student's monitors from my computer monitor and help them with errors. The red error color on the black background
Geocube101
Geocube101
The only way I can think of is to catch the errors and print the Error/Exception off in a different color #Python try: var = int(input('Enter Integer: ')) ans = var / 0 #ZeroDivisionError - Attempted Division of Integer by 0 except Exception as error: print(error) //Javascript try { if (5 == 7 //<-- Syntax Error - Parenthesis not Closed { console.log('Message'); } } catch(error) { console.log(error.message); } As a teacher, I'm not sure if this will work unless your students put 4 years ago
Pythonier
Pythonier
You can ask this at the feedback board: https://repl.it/feedback/. Other than that I am pretty sure that you cannot change the color of the errors.4 years ago
kmcrae
kmcrae
shared a Post
4 years ago
My students typically use system("cls") to clear the screen in a C++ program but in the classroom, it is not supported. It works when they are doing
a5rocks
a5rocks
Have you tried system("clear")? clear is just the bash equivalent of the cmd cls4 years ago
SPQR
SPQR
Outside of those two methods, I don't believe that there is another way to clear the console, other than simply printing newlines enough times to flood the screen with empty lines. At least, not without using a library like ncurses.4 years ago
kmcrae
kmcrae
shared a Post
4 years ago
I have a classroom set up for my C++ students and we are now learning about creating our own classes. I need to be able to define the class structure
SPQR
SPQR
Could you link the repl? That way we'll be able to see exactly what's wrong :)4 years ago
kmcrae
kmcrae
shared a Post
4 years ago
Is there a way to hide student's previous assignments so they can't access them later ? Like when doing a test and I don't want them to just open an o
kmcrae
kmcrae
shared a Post
4 years ago
Do you have a time line for when the server errors experienced today will be fixed? The only thing that changed since the last time I had my students
masfrost
masfrost
It's fixed thank you.4 years ago
kmcrae
kmcrae
shared a Post
4 years ago
Do you have a time line for when the server errors experienced today will be fixed? The only thing that changed since the last time I had my students
kmcrae
kmcrae
shared a Post
4 years ago
I cannot get the title function to work I keep getting that Attribute Error python title error
apraveena
apraveena
Me too. Did you find any solution for this?2 years ago