File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -209,12 +209,13 @@ defmodule IEx.Helpers do
209
209
their results.
210
210
"""
211
211
def v do
212
- IEx.History . each ( print_history_entry ( & 1 ) )
212
+ inspect_opts = IEx.Options . get ( :inspect )
213
+ IEx.History . each ( print_history_entry ( & 1 , inspect_opts ) )
213
214
end
214
215
215
- defp print_history_entry ( config ) do
216
+ defp print_history_entry ( config , inspect_opts ) do
216
217
IO . write IEx . color ( :info , "#{ config . counter } : #{ config . cache } #=> " )
217
- IO . puts IEx . color ( :eval_result , "#{ inspect config . result } \n " )
218
+ IO . puts IEx . color ( :eval_result , "#{ inspect config . result , inspect_opts } \n " )
218
219
end
219
220
220
221
@ doc """
@@ -262,10 +263,15 @@ defmodule IEx.Helpers do
262
263
Flushes all messages sent to the shell and prints them out.
263
264
"""
264
265
def flush do
266
+ inspect_opts = IEx.Options . get ( :inspect )
267
+ do_flush ( inspect_opts )
268
+ end
269
+
270
+ defp do_flush ( inspect_opts ) do
265
271
receive do
266
272
msg ->
267
- IO . inspect ( msg )
268
- flush
273
+ IO . inspect ( msg , inspect_opts )
274
+ do_flush ( inspect_opts )
269
275
after
270
276
0 -> :ok
271
277
end
You can’t perform that action at this time.
0 commit comments