PhpStorm terminal window formatting/ ANSI color codes - laravel

I'm new to PhpStorm and started creating application with Laravel.
I have one small difficulty with terminal. I use Windows 10 and the newest PhpStorm (2016.3). And as you can see, format of the artisan commands are highly unreadable.
Please help me, if you have any solutions/plugins to fix that. It would be also great to find some colour themes. Unless I have to customize it one by one in settings?
My window is on the left, on the right side is an screen from my teachers videos (he uses Mac).

This is solution that works for me.
http://jasonkarns.com/blog/ansi-color-in-windows-shells/
In PhpStorm just replace Shell path and it works correctly!

Related

Can't open terminal in VSCode Python on macOS

I can't open my terminal in VSCode for some reason. Whenever I try to open it, it immediately closes. I can open the other parts of my console like "problems" or "output" but not terminal.
I saw a bunch of comments from people who experienced the same issue previously about changing their settings.json, specifically the osx profiles part, but it didn't work for me. I was trying to run and debug a python code I wrote through flask when this problem occurred. Here's my settings page.
my settings.json page
I also deleted all the codes in between the parentheses to get the default settings because I saw some other people do it on here, but that didn't work either. What can I do?
I use macOS 12.0.1.
I'm 15 and have just started learning back-end development on my own, so I would really appreciate if you guys could provide a "results" code snippet or image so that I can check whether I'm doing it right.

Clear terminal without clearing first line of multi-line prompt

I'm trying to setup the terminal on my new Mac to match the behavior of my old Mac, however I have run into an issue with my multiline prompt that has me stumped. I remember having this issue when I setup my old Mac several years ago, however I don't remember how I solved it.
My prompt (without color) looks like this:
╭─username ~ 130 ↵
╰─
When I press ⌘commandK in iTerm2 on my old Mac it clears the terminal window so that both lines of the prompt are shown at the top.
When I press ⌘commandK in iTerm2 on my new Mac it clears the terminal window so that only the second line of the prompt is shown at the top.
I have tried checking everything I could think of, I have checked:
Every dot file/directory in my home directory (copied them to the new Mac).
iTerm2 settings.
System settings (primarily keyboard shortcuts).
Various websites with instructions about setting up multi-line prompts.
Interestingly I have discovered that if I type clear iTerm2 will clear the screen and leave the top line showing on both Macs. However it first clears the entire screen, including the prompt, before bringing the prompt back (looks bad imo). However since it works differently ⌘commandK does I don't think that's what my old Mac is doing.
It's possible that I installed some program/script that somehow does this, but if so I'm not finding it locally or referenced online.
Does anyone know how I can get ⌘commandK working to clear the screen while keeping the top line of my prompt? I still have the old Mac so I can check/compare anything on it to the new Mac if there are any guesses about what settings I changed.
Edit:
I was able to find something that worked, however if anyone has any other suggestions I'll be happy to try them and accept any that I can make work that are less hacky than this (e.g. don't require another 3rd party app).
Edit: This doesn't work while a command is running, nor does it clear the scrollable history. So it's better than nothing but still doesn't behave like I want it to.
After coming back to my question SO associated a new question with an answer I was able to make work, although it feels extra hacky and wasn't what I had working before.
I found this answer which suggests using ⌃controlL to clear the screen. That does exactly what I want it to do (leaves the top prompt visible and doesn't flash) but with the wrong keybinding. Fortunately I was able to use an app I already have installed (BTT) to make ⌘commandK map to ⌃controlL only in iTerm2.

Problem with integrated terminal in PhpStorm

I'm learning Laravel, and also I started learning it with(for me) new editor - PhpStorm. I want to edit my terminal(not colors, fonts, etc.). I integrated the gitbash instead of factory terminal that comes with PhpStorm.
The problem is that I'm having some'? ' with a number, usually '32m' before the statements in my terminal. To explain it better, here's a screenshot:
And for example, everyone that I've seen on google, using PhpStorm have 'normal' editor without those symbols and numbers before each line in the terminal.
My terminal atm :
Tried searching JetBrains FAQ, googling and ofc here on StackOverflow, but no luck for me.
What would I like my terminal to look like https://i.stack.imgur.com/oh3Vv.jpg
What it's missing is the ANSI support for color codes. As a result you see those strange characters as these aren't parsed and therefore displayed as output.
Maybe you could try with a little utility like ansicon. For further details take a look at this article (outdated but might work anyway)

PhpStorm keeps opening default macOS terminal

I'm not sure this is the right place to ask this but I need some help setting up the terminal in PhpStorm...
I recently switched to macOS (before that I was a Windows user) and installed PhpStorm and set everything up as I wanted except I ran into a small problem that is not really a problem but more of an inconvenience...
Every time I open the terminal in PhpStorm it opens the macOS terminal but I want to use the one in the IDE.
What settings do I have to change or where have I messed up that this is happening?
Those are the settings in PhpStorm:
P.S. Sorry for bad English it is not my native language.
Just change Shell path back to /bin/bash.

Vim under mac does not behave as expected

I recently got a mac. I was previously working on a laptop with ubuntu and I was using vim.
I now will discuss about vim in console (iTerm2 or the default terminal) and macvim.
The problem is that some binding don't work under mac. For example I had CTRL left/right for navigating between splits, CTRL up/down to move lines or blocks of code up and down, etc. They don't work anymore.
I had a bunch of plugins (nerdtree, powerline, etc.) that now look weird. Powerline doesn't display special characters in macvim and in terminal they are question marks.
In console, nerdtree looks weird and it doesn't display the special triangle character. If I hit return to open a file selected from nerdtree, it doesn't do anything. In macvim, it works ok.
Is there any guide on how to use vim on mac? Or what is the recommended way?
Nerdtree : let g:NERDTreeDirArrows=0
Powerline : Take a look at the part of strange characters in the document https://github.com/Lokaltog/vim-powerline
Navigating within splits with Ctrl + arrows work on mine. Can you post your vimrc, or try running vim without any configuration.
Ctrl+arrows to move lines and block doesn't work on mine.
Did you check which key was sent by your terminal to vim ?
Did you tried to set it manually ?
I had similar problems with emacs, including one keybinding I'm still not able to reproduce :(
I have the exact same config on my Mac and a Windows box at work, my Ubuntu box at home and a couple of VPSes. It works exactly the same on every platform in GVim/MacVim or in plain Vim.
Unfortunately I don't use either NERDTree nor Powerline but Vdt's answer seems to have all the info needed.
Some of the behaviors you describe are custom mappings. You should show us your ~/.vimrc (the old one on linux and the new one on the Mac, if there are differences) so that we can help you make it more portable.
Also, "looks weird" means nothing: please add a screenshot or two.

Resources