Skip to content
Sign upLog in
← Back to Community

How to pop out terminal in a new tab

Profile icon
[deleted]

Hi, I am wanting to pop out the terminal in a new tab. I know that there is the default terminal

this thing
image


I know you can pop that out, but I am wondering if you can pop out the shell. this thing:

image

So basically how can I open the shell in a new tab/window

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
antho4852
Profile icon
Lahlan
Profile icon
Nuray06
Comments
hotnewtop
Profile icon
Coder100

Well, you can't open up the shell in a new tab/window yet, but you can configure it so it does something similar:

Create a .replit file:

run = "sh main.sh"

main.sh:

while [ true ]; do read -p "~/testbot0101$ " a $a done
Profile icon
[deleted]

That doesnt reall [email protected]

Profile icon
Coder100

wait really

@JohnS4

Profile icon
Coder100

hm

@JohnS4

Profile icon
Coder100

oh right, edited now

@JohnS4

Profile icon
[deleted]
Profile icon
Coder100

awesome!! np :D

@JohnS4

Profile icon
[deleted]

also, I was wondering, is there a way to set up fpt with a repl [email protected]

Profile icon
Coder100

fpt?

@JohnS4

Profile icon
[deleted]

yeah, file transfer protocol. Basically I want to use something like filezilla to add files to my repl [email protected]

Profile icon
[deleted]

ftp

@JohnS4

Profile icon
Coder100

@JohnS4
ahh, well, you can just drag and drop...
anyways, it's not possible, repl.it runs on a VM, and it can't interact with your computer.

Profile icon
[deleted]
Profile icon
Coder100

yeah, how unfortunate :(

@JohnS4

Profile icon
[deleted]

is there any way I can access the files via the terminal? Basically I want to have a way for people to add, and delete files one way or another, but not from repl.it


@Coder100

Profile icon
Coder100

@JohnS4
http server ig

Profile icon
[deleted]

do you know how to do that? I am kinda dumb with this part of [email protected]

Profile icon
Coder100

looks like a job for multer

Make sure content type is set to multipart/form-data for your form. (type attribute)

@JohnS4

Profile icon
CodeLongAndPros

I mean you can use the Terminal MUtlipleXer tmux:

install-pkg tmux

And then look at this to get started

Profile icon
[deleted]

i do that, and all i get is
image


@CodeLongAndPros

Profile icon
CodeLongAndPros

@JohnS4
Did you do install-pkg tmux?

Profile icon
RipFive

@CodeLongAndPros

I didn't work for me with the following error:

[email protected]:~/.../quickstart/python$ dmesg dmesg: read kernel buffer failed: Operation not permitted
Profile icon
CodeLongAndPros

@RipFive
Why did you call dmesg?

Profile icon
elonmaks

import os

- inject defs -

def inject(command):
print 'Injecting Into Shell...'
os.system(command)

print 'Welcome to GetSHELL!'
print 'Getting Shell Access Please Wait...'
cmd = 'sh'
inject(cmd)

Hi ,
@JohnS4
Try this one. And open it pressing the button that passing you to another tab.

Profile icon
[deleted]

I think this is python. sorry i forgot to spoecify, I am using node.js. Can u send a version of that?

@elonmaks

Profile icon
Coder100

node.js doesn't have that level access into the bash shell

@JohnS4

Profile icon
[deleted]

oh, ok thanks


@Coder100