Skip to content
Sign upLog in
← Back to Community

Make your own console

Profile icon
ChezCoder

HIIII

Ok, so, ive been seeing a lot of custom languages these days on repl and have decided to help people make custom intereters (consoles)!

Change the settings of your customized console from lines 1-25!

To add commands, go to config.py. Commands are functions and parameters are the function parameters.

HAI 1.3 GIMMEH BUGS KTHXBYE

Please comment bugs in the comments. Also, don't be afraid to post the console you've made from this in the comments!

HAI 1.3 GIMMEH FEDBEAK KTHXBYE

Please give me feedback on how to improve! :DDDD

Voters
Profile icon
KraziDev12345
Profile icon
NFadhlurrahman
Profile icon
MYTHICAL1
Profile icon
thethermometer
Profile icon
Bumblebee99
Profile icon
L64
Profile icon
DepthStrider03
Profile icon
programmeruser
Profile icon
SeamusDonahue
Profile icon
angrydoge
Comments
hotnewtop
Profile icon
techgeek680

ohhhhhh im gonna use it. everytime i make new python repl: SYNTAX ERROR BLAH BLAH BLAH. jeez. THANK YOU!!!!!!!!!!!!!!!!

Profile icon
ChezCoder

@techgeek680
:)

Profile icon
awesome10

this is supercool!

Profile icon
ChezCoder

@awesome10
:) did you make a console?

Profile icon
awesome10

@ChezCoder
working on it!

Profile icon
ChezCoder

@awesome10
:)

Profile icon
awesome10

@ChezCoder
:D

Profile icon
awesome10

@ChezCoder
cant even get one command to work XD

Profile icon
17lwinn

This is good, i'd recommend perhaps running the python command using a subprocess instead of using os.system(). Because it provides better flexibility and gives a bit more control over it.

Profile icon
mollthecoder

This is more of a terminal template

Profile icon
ChezCoder

@mollthecoder
lol true. i made this for fun, but never knew people actually have used it.

Profile icon
DepthStrider03

OMGGGGGGGGGGGGGGGG

Profile icon
ChezCoder

@DepthStrider
yea, OMG!

Profile icon
EoX

Woooow

Profile icon
ChezCoder

@EoX
thanks! :)

Profile icon
SeamusDonahue

I found a new bug: if you define a function without params (e.g. def func():) it will not be callable. calling it will say function funcname or whatever and adding a param to it will cause a param error

Profile icon
SeamusDonahue

also a minor thing: if you define a class for commands (e.g. for something like log.write using a log class) typing help (class name) does not return anything, seemingly ignoring your input. maybe make it list the functions of that class?

Profile icon
SeamusDonahue

one more thing, you should make it so we can decide the separation character in commands (e.g instead of command param param2 I could make it command param,param2, or command param!param2) so we can do stuff with params that have spaces

ps: I'm making §tar with this https://repl.it/@SeamusDonahue/SStar#main.py

Profile icon
SeamusDonahue

I got one problem: I wrote a function:

def get(prompt): return input(prompt)

but when I do get "test" or get("test") it gives a "syntax error"

Profile icon
SeamusDonahue

I stand corrected that was a working command its:

def write(msg): sys.write(msg) #I did import sys

that doesn't work

Profile icon
ChezCoder

@SeamusDonahue
hmm... thats very strange... ill work on it, thanks for reporting the bug!

Profile icon
SeamusDonahue

this is really cool, I'm gonna play around with this now! thanks for making this!

Profile icon
ChezCoder

@SeamusDonahue
wow, thank you for the suggestions, ill work on them :)

Profile icon
CircuitSacul

help clear gives Error: 'clear' is not a valid command. even though clear clears the console.

Profile icon
ChezCoder

@LD1
o good catch ill patch it up

Profile icon
gavinwinsagain

Hi is it ok if i use this template to do some stuff with python if i keep credits in?

Profile icon
ChezCoder

@gavinwinsagain
go right ahead :)

Profile icon
gavinwinsagain

Thx

@ChezCoder

Profile icon
DaRubyMiner360

I already had a shell/console for my programming language, but this is amazing! I am adding this immediately! Great job!

Profile icon
Leroy01010

whts 'LICENSE' FOR?

also chiiiilll
"HAI 1.3 GIMMEH BUGS KTHXBYE"

"HAI 1.3 GIMMEH FEDBEAK KTHXBYE"

Profile icon
octopyBot

owo very cool but the HAI 1.3 GIMMEH FEDBEAK KTHXBYE?
==============================

Profile icon
ChezCoder

@octopyBot
:)

Profile icon
octopyBot

@ChezCoder
wow repl has changed. idk why I said owo lol. wow I used to be IN, I was one of the top coders for a while. huh I've been gone too long

Profile icon
TheDrone7

Moving this to templates.

Profile icon
ChezCoder

@TheDrone7
wow thanks!

Profile icon
shadow00dev

cool

Profile icon
CodingGoose

Awesome!

Profile icon
jackou

This could go well in the Templates section! Cool