Here, I use the function \txtbrut to write in typewritter font certains things such as file names or functions in python, matlab, etc. I use listings for the colouring of the code and because it does a better job at cutting names than \texttt. But it is not at a 100% reliable, and I do not need here the same convention as for normal text.
How could I modify my function \txtbrut so it allows break anywhere, with no hyphenation ?
\documentclass{report}
\usepackage{fontspec}
\usepackage[hmargin=8cm,showframe]{geometry}
\usepackage{listings}
\newcommand*{\txtbrut}{\lstinline[basicstyle=\ttfamily]}%[
\begin{document}
\txtbrut{Iletaitunefoisunejeuneetjolieprincessequiaimaiteclaterlecranedesesennemis.txt}
\end{document}

\seqsplitis not in\texttt. – HcN Feb 27 '16 at 20:56