Output of system function in Linux
Dear all,
I would like to execute the following system command
[~, res] = system([‘TERM=xterm git -c color.ui=false show –pretty="%cd"’])
to get some information about git. However, the result looks like this
‘�[?1h�=
Wed Mar 8 12:19:18 2017 +0200�[m
�[m
�[K�[?1l�>’
I would like to get rid of these escape characters starting with square brackets. I already disabled the colouring of the output, because I suspected this to be responsible, but that didn’t seem to be the problem. Does it make sense to select a different type of terminal? Or is this maybe some kind of conversion problem?
Thanks!Dear all,
I would like to execute the following system command
[~, res] = system([‘TERM=xterm git -c color.ui=false show –pretty="%cd"’])
to get some information about git. However, the result looks like this
‘�[?1h�=
Wed Mar 8 12:19:18 2017 +0200�[m
�[m
�[K�[?1l�>’
I would like to get rid of these escape characters starting with square brackets. I already disabled the colouring of the output, because I suspected this to be responsible, but that didn’t seem to be the problem. Does it make sense to select a different type of terminal? Or is this maybe some kind of conversion problem?
Thanks! Dear all,
I would like to execute the following system command
[~, res] = system([‘TERM=xterm git -c color.ui=false show –pretty="%cd"’])
to get some information about git. However, the result looks like this
‘�[?1h�=
Wed Mar 8 12:19:18 2017 +0200�[m
�[m
�[K�[?1l�>’
I would like to get rid of these escape characters starting with square brackets. I already disabled the colouring of the output, because I suspected this to be responsible, but that didn’t seem to be the problem. Does it make sense to select a different type of terminal? Or is this maybe some kind of conversion problem?
Thanks! system, linux, git MATLAB Answers — New Questions